Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: triviality with prompts
- X-seq: zsh-users 19482
- From: Lawrence Velázquez <larryv@xxxxxxxxxxxx>
- To: Ray Andrews <rayandrews@xxxxxxxxxxx>
- Subject: Re: triviality with prompts
- Date: Tue, 2 Dec 2014 23:38:41 -0500
- Cc: zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=x-sasl-enc:content-type:mime-version :subject:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:to; s=smtpout; bh=qn79FWaD9vs6Hnny+Fk0xRk zukU=; b=Dc7L/wc908TkDMnCsgQ2hGWawccUT3BLSCSVeYJCvhKlQKS3oPdH/m5 ZvQGpycAK39TCkR+1g/cYoBx65ihYXU2SjEf9hWQxj4tEm/BdX+SuxQXbpyJ1JIq yIgJCdWG0CCnp9wgpct0fnIxeBPaZn+uJ22NZlQBLC793aTCMfno=
- In-reply-to: <547E9158.6050103@eastlink.ca>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <547E568C.6070607@eastlink.ca> <141202190200.ZM31930@torch.brasslantern.com> <547E9158.6050103@eastlink.ca>
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