Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Possible :q quoting bug
- X-seq: zsh-workers 44644
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Aryn Starr <whereislelouch@xxxxxxxxxx>
- Subject: Re: Possible :q quoting bug
- Date: Thu, 8 Aug 2019 14:37:24 -0700
- Cc: "zsh-workers@xxxxxxx" <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=Gb8kH52Uqfuo9azZVm1uejhi7HMyTUjYIYx5adp5kg0=; b=jHXjrsyyyuJn1HkXRs1DkY+hxZtYSDdcxhur+J34C/iXv6LknUtfAOIVSsOGGoeH2O 8SYa+HMBIgUuuYUvowREnMfpvyLQ9vQsT54Xot/fz14D9mBvz/Cld3d0ov4Psm2eNBf5 +9edejlUqCgFebWM4urOZBpvYUg2OcpBK+NLrx/e5xt9tWakQZgaGCUfZS1rqj2U/Uho pdwwiJ7G1AAlUsuVteB0im8kqZE+Coxv1xQMKGvJNdEy245On7mtY86u+xIscGX3cJL2 G4TztZSjhaRXOlcB0HaN1A7HXsI3cJS/s2e5FZJHj+Z7dzj4rb/M/7lyYm4j/BvRDhzu j+HA==
- In-reply-to: <5E224043-AA93-4B39-94BB-6230A9A2737F@icloud.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <5E224043-AA93-4B39-94BB-6230A9A2737F@icloud.com>
On Thu, Aug 8, 2019 at 1:18 PM Aryn Starr <whereislelouch@xxxxxxxxxx> wrote:
>
> Hi,
> I expect this function to be idempotent on the command line:
> ```
> Function reveal() {
> eval “${@:q}”
> }
> ```
> But it’s not. It loses empty args.
You want ${(q)@} rather than ${@:q}.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author