From: "Daniel Shahaf" <d.s@daniel.shahaf.name>
To: dana <dana@dana.is>, Aurélien <orel_jf@yahoo.fr>
Cc: zsh-users <zsh-users@zsh.org>
Subject: Re: help for writing GNU stow completion
Date: Fri, 16 Aug 2019 01:28:18 +0000 [thread overview]
Message-ID: <e1a43314-3702-4bee-90cd-cde6b384f9d1@www.fastmail.com> (raw)
In-Reply-To: <BAE67462-BF39-481A-BCD6-DE288FE6CC92@dana.is>
dana wrote on Fri, 16 Aug 2019 01:12 +00:00:
> something like this is probably the best way...?
>
> local -a stow_pkg_list
> eval set -A stow_pkg_list $1
This would run the code being typed on the command line in cases
such as «--dir *(+f)» and «--dir $(sudo pwd)», wouldn't it?
> [[ -n $stow_pkg_list ]] && stow_pkg_list=( $stow_pkg_list/*(-/N:t) )
I think you want ${^stow_pkg_list} in the second instance, don't you?
next prev parent reply other threads:[~2019-08-16 1:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-06 17:04 Aurélien
2019-08-15 23:36 ` dana
2019-08-16 1:28 ` Daniel Shahaf [this message]
2019-08-16 1:54 ` dana
2019-08-17 7:48 ` Aurélien
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=e1a43314-3702-4bee-90cd-cde6b384f9d1@www.fastmail.com \
--to=d.s@daniel.shahaf.name \
--cc=dana@dana.is \
--cc=orel_jf@yahoo.fr \
--cc=zsh-users@zsh.org \
/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).