bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to show path with backslash '\' in it in the prompt?


From: Peng Yu
Subject: How to show path with backslash '\' in it in the prompt?
Date: Sat, 10 Jul 2010 20:57:25 -0500

Hi,

I have a directory named '\E' (two letters, rather than a single
special character). I have the following $PS1 variable.

$ echo $PS1
${debian_chroot:+($debian_chroot)}\u@\h:\w\$

When my current directory is '\E', the prompt shows a special
character (I think that it should be the special character '\E'). I'm
wondering if there is a way to change $PS1 to show two characters '\'
and 'E'.

-- 
Regards,
Peng



reply via email to

[Prev in Thread] Current Thread [Next in Thread]