From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: Re: Chatty little precompiler for _arguments
Date: Tue, 21 Sep 1999 09:15:27 +0200 (MET DST) [thread overview]
Message-ID: <199909210715.JAA12748@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: "Bart Schaefer"'s message of Mon, 20 Sep 1999 16:36:07 +0000
Bart Schaefer wrote:
> On Sep 20, 10:43am, Sven Wischnowsky wrote:
> } Subject: Re: Chatty little precompiler for _arguments
> }
> } Bart Schaefer wrote:
> }
> } > though it would be really useful if $param:q could emit quoting instead of
> } > backslashes.
> }
> } I would be against this because its much less useful in cases where
> } you stuff together string from multiple parameters.
>
> I'm not sure what you're getting at, there.
I was thinking about uses as in `_path_files' where we have
`$linepath${testpath:q}' (yes, this could be changed to `(q)' some
time). The only thing I wanted to point out that having *only* the
put-in-quotes style would be ugly in such cases (and I knew about the
`${:-...}' trick, of course, but in contexts like `_pth_files' I would
like to avoid the quotes altogether).
And I didn't want to say that I would be against changing the
behaviour of `:q' as long as we still have the possibility to get
backslashes with the `(q)' flag.
> On Sep 20, 2:15pm, Sven Wischnowsky wrote:
> } Subject: PATCH: was: Re: Chatty little precompiler for _arguments
> }
> } This does that. `${(qqq)foo}' looks a bit silly doesn't it?
>
> The man who wrote
>
> ${(@)^${(@)${(@)${(@M)${(@ps:\n:j:\n:)${(@)${(@M)${(@f)$(${~words[1]} --help 2>&1)//\[--/
> --}:#[ ]#-*}//,/
> }}:#[ ]#--*}#*--}%%[, ]*}:#}
>
> wants to talk about "looks a bit silly"?
;-)
Bye
Sven
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
next reply other threads:[~1999-09-21 7:15 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-09-21 7:15 Sven Wischnowsky [this message]
-- strict thread matches above, loose matches on Subject: below --
1999-09-23 14:07 Sven Wischnowsky
1999-09-23 10:28 Sven Wischnowsky
1999-09-23 14:12 ` Tanaka Akira
1999-09-23 15:12 ` Bart Schaefer
1999-09-25 2:53 ` Tanaka Akira
1999-09-23 9:13 Sven Wischnowsky
1999-09-23 13:57 ` Tanaka Akira
1999-09-20 12:57 Sven Wischnowsky
1999-09-20 8:43 Sven Wischnowsky
1999-09-20 12:15 ` PATCH: was: " Sven Wischnowsky
1999-09-20 16:36 ` Bart Schaefer
1999-09-23 1:39 ` Tanaka Akira
1999-09-19 22:57 Bart Schaefer
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=199909210715.JAA12748@beta.informatik.hu-berlin.de \
--to=wischnow@informatik.hu-berlin.de \
--cc=zsh-workers@sunsite.auc.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).