blfs book -suggested /etc/profile

Heinz Kirchmann kirchman at
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 (')


Unsubscribe: send email to listar at
and put 'unsubscribe blfs-support' in the subject header of the message

More information about the blfs-support mailing list