blfs book -suggested /etc/profile

Heinz Kirchmann kirchman at dfki.uni-kl.de
Fri Jul 18 08:08:48 PDT 2003


> 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 (')

Heinz

-- 
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 mailing list