From: "Joshua Symons" <vmcore@mysun.com>
To: Bart Schaefer <schaefer@brasslantern.com>
Cc: zsh-users@sunsite.dk
Subject: Re: Preexec & Printf
Date: Thu, 25 Apr 2002 21:10:54 -0500 [thread overview]
Message-ID: <232431fbb3.1fbb323243@mysun.com> (raw)
Thx for all the help Geoff & Bart.
I think I'll just stick with ${(qV)1} for now and change if necessary,
it appears to be working with everything. I'll try switching to ${(qV)2}
if I switch up to 4.0.4. Thx again.
- Josh -
----- Original Message -----
From: Bart Schaefer <schaefer@brasslantern.com>
Date: Thursday, April 25, 2002 9:06 pm
Subject: Re: Preexec & Printf
> On Thu, 25 Apr 2002, Joshua Symons wrote:
>
> > ${(qV)1} appears to be doing the job in 3.1.9, in 3.0.8 (the version
> > that comes with solaris 9) or 3.0.6 (the version that comes with
> solaris> 8) it gives a syntax error.
> > However with ${(QV)1} I still get garbage into my shell.
>
> ${(q)...} adds a level of quoting, and ${(Q)...} removes a level. Per
> Geoff's message, the (q) is "working" because it quotes the
> backslashesand so forth, protecting e.g. \a from being emitted as
> control-G by print.
>
> However, what you said you wanted was to remove the quotes, so
> that's why
> I suggested (Q). That doesn't solve the backslashing problem.
>
> You could try ${(q)${QV)1}} which would first remove the quotes and
> thenescape the backslashes, or you can stick with just ${(qV)1}.
>
>
next reply other threads:[~2002-04-26 2:13 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-26 2:10 Joshua Symons [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-04-26 1:54 Joshua Symons
2002-04-26 2:06 ` Bart Schaefer
2002-04-26 1:31 Joshua Symons
2002-04-26 1:47 ` Geoff Wing
2002-04-26 1:25 Joshua Symons
2002-04-26 1:45 ` Bart Schaefer
2002-04-26 9:21 ` Oliver Kiddle
2002-04-26 1:07 Joshua Symons
2002-04-26 1:16 ` Bart Schaefer
2002-04-26 1:19 ` Bart Schaefer
2002-04-26 0:47 Joshua Symons
2002-04-26 1:01 ` Bart Schaefer
2002-04-26 1:22 ` Geoff Wing
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=232431fbb3.1fbb323243@mysun.com \
--to=vmcore@mysun.com \
--cc=schaefer@brasslantern.com \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).