home directory

Alan Cox alan at lxorguk.ukuu.org.uk
Fri Dec 19 15:57:33 UTC 2008


On Fri, 19 Dec 2008 16:51:08 +0100
"Adel ESSAFI" <adelessafi at gmail.com> wrote:

> >
> > -----BEGIN PGP SIGNED MESSAGE-----
> >> Hash: SHA1
> >>
> >> Adel ESSAFI wrote:
> >>
> >> > Can tou help me to solve this problem
> >>
> >> try '~/$user'.
> >
> >
> > No, it does not work
> 
> In a scrit shell, I have a variable user which will take all users values

There is probably a proper way to do this but the following ugly hack
also works

DIRECTORY=$(echo "echo ~"$USERNAME | sh)




More information about the fedora-list mailing list