blfs book -suggested /etc/profile
ken at kenmoffat.uklinux.net
Fri Jul 18 10:10:45 PDT 2003
On Fri, 18 Jul 2003, Heinz Kirchmann wrote:
> > PS1="\u@\h \w \$"
> > ...
> > When I echo $PS1 I get
> > \u@\h \w $
> > so somehow it has lost the '\' from '\$'.
> Backslashes followed by a special character in strings enclosed in "
> get eaten during shell evaluation. Their only use is to prevent the
> following character from being special.
> The solution is to use single quotes (')
Well spotted! Thanks. I guess I got lulled into a false sense of
security by \u and so forth being ok. YAQI (yet another quoting issue).
You'll always find me out to lunch
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe blfs-support' in the subject header of the message
More information about the blfs-support