Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Possible :q quoting bug



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