From owner-freebsd-questions Sat Oct 16 21:30:57 1999 Delivered-To: freebsd-questions@freebsd.org Received: from news-ma.rhein-neckar.de (news-ma.rhein-neckar.de [193.197.90.3]) by hub.freebsd.org (Postfix) with ESMTP id 9075C150BC for ; Sat, 16 Oct 1999 21:30:46 -0700 (PDT) (envelope-from daemon@bigeye.rhein-neckar.de) Received: from bigeye.rhein-neckar.de (uucp@localhost) by news-ma.rhein-neckar.de (8.8.8/8.8.8) with bsmtp id GAA13430 for freebsd-questions@freebsd.org; Sun, 17 Oct 1999 06:30:45 +0200 (CEST) (envelope-from daemon@bigeye.rhein-neckar.de) Received: (from daemon@localhost) by bigeye.rhein-neckar.de (8.9.3/8.9.3) id DAA09041 for freebsd-questions@freebsd.org; Sun, 17 Oct 1999 03:57:42 +0200 (CEST) (envelope-from daemon) From: naddy@mips.rhein-neckar.de (Christian Weisgerber) Subject: Re: bash's "\$" in PS1 doesn't work right Date: 17 Oct 1999 03:57:42 +0200 Message-ID: <7ubaem$8q3$1@bigeye.rhein-neckar.de> References: <87g0zbxmdg.fsf@main.wgaf.net> <87aepjxlrk.fsf@main.wgaf.net> <86ogdyn6p3.fsf@localhost.hell.gr> To: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Giorgos Keramidas wrote: > If you had used > > export PS1="\\h:\\w:\\\$ " > > it would have worked without a glitch, The situation is further muddied by the fact that Bourne compatible shells (such as bash) only substitute the backslash escapes '\\', '\"' and '\$' inside double quotes. Other backslash combinations are passed as is, i.e. PS1="\h:\w:\\\$ " produces the intended result. -- Christian "naddy" Weisgerber naddy@mips.rhein-neckar.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message