Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh adding single quotes as it pleases
- X-seq: zsh-users 14430
- From: "Nadav Har'El" <nyh@xxxxxxxxxxxxxxxxxxx>
- To: Jerry Rocteur <macosx@xxxxxxxxxx>
- Subject: Re: zsh adding single quotes as it pleases
- Date: Thu, 24 Sep 2009 14:32:48 +0300
- Cc: zsh-users@xxxxxxxxxx
- Hebrew-date: 6 Tishri 5770
- In-reply-to: <64763.153.98.68.197.1253790454.squirrel@xxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <64763.153.98.68.197.1253790454.squirrel@xxxxxxxxxxxxxxxxxxx>
On Thu, Sep 24, 2009, Jerry Rocteur wrote about "zsh adding single quotes as it pleases":
> [113] + set -x
> [113] + echo -a 'r0esmm/Bis1234/"XXX' XXX - 'XXXX"'
> -a r0esmm/Bis1234/"XXX XXX - XXXX"
> [113] + read line
>
> zsh is adding single quotes..
Do you see this problem anywhere except in "set -x" output?
Because "set -x" output is known to be a bit different from what you
actually typed. You don't need your complex program to check it - you
can try set -x interactively:
$ echo "hi there"
+zsh:1> echo 'hi there'
hi there
/home/nyh$ echo hi\ there
+zsh:2> echo 'hi there'
hi there
Note how any kind of quoting is turned into a single quote on set -x's
output. Why does this bother you? (Or maybe I'm misunderstanding what
bothered you).
--
Nadav Har'El | Thursday, Sep 24 2009, 6 Tishri 5770
nyh@xxxxxxxxxxxxxxxxxxx |-----------------------------------------
Phone +972-523-790466, ICQ 13349191 |The avalanche has already started. It is
http://nadav.harel.org.il |too late for the pebbles to vote.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author