Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: triviality with prompts



On Dec 2, 2014, at 11:28 PM, Ray Andrews <rayandrews@xxxxxxxxxxx> wrote:

> On 12/02/2014 07:02 PM, Bart Schaefer wrote:
> 
>> Once again you're confused about how quoting works.  The variable isn't
>> inside single quotes at the time the prompt is expanded.  In fact, in your
>> example $'...' is NOT the same as single quotes.
> 
> God knows.  If ' ... ' isn't single quotes then is sure has me fooled.  One day
> it will all make sense.  I know everything is different with prompt strings tho,
> it's a world unto itself where single quotes are not single quotes.

Peruse the "QUOTING" section in zshmisc(1). Surrounding a string with single quotes ('foo') is not the same as surrounding a string with single quotes preceded by a dollar sign ($'foo').

vq


Messages sorted by: Reverse Date, Date, Thread, Author