bug-bash
[Top][All Lists]
Advanced

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

Re: Proposed Prompt Escapes


From: Dennis Williamson
Subject: Re: Proposed Prompt Escapes
Date: Tue, 10 Nov 2015 12:54:41 -0600



On Tue, Nov 10, 2015 at 12:14 PM, Andreas Schwab <schwab@linux-m68k.org> wrote:
Dennis Williamson <dennistwilliamson@gmail.com> writes:

> But wait, you don't need the intermediate step! It already works!!!
>
> prompt=$'\u, something about dominoes \U1F061  \@ '

You should quote the backslashes.

prompt=$'\\u, something about dominoes \U1F061  \\@ '

Andreas.

--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


Thanks. That's better since it defers their evaluation which is important when there is a conflict between the ANSI-C escapes and the prompt escapes (e.g. \u (user) followed immediately by hex chars, \t, \v).


--
Visit serverfault.com to get your system administration questions answered.

reply via email to

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