Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: help for writing GNU stow completion
- X-seq: zsh-users 24146
- From: "Daniel Shahaf" <d.s@xxxxxxxxxxxxxxxxxx>
- To: dana <dana@xxxxxxx>, Aurélien <orel_jf@xxxxxxxx>
- Subject: Re: help for writing GNU stow completion
- Date: Fri, 16 Aug 2019 01:28:18 +0000
- Cc: zsh-users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=mime-version:message-id:in-reply-to :references:date:from:to:cc:subject:content-type :content-transfer-encoding; s=fm1; bh=EpDCBop4XMhqdq2/rMM0I7x+Wt YdLK/lADDyMZAfpj4=; b=Yeo3SSrXN9Fz2f56HaA4Eb5V8WQxiy0nW3TuIecYqB bJWP4tSoK0E5DSVnU/LZmc4cFjofotkCtfGISSsz8Xkso+LY044VwOPEyq5+gnsV AQCYm0q7AbsMHRgLUmK4E991cFcD7KY6KvOeezuAvmdM2+8MFdonRK4nlDB7+klH aQ1n0IvnCUue3UeX4qcwyOGXwlevxNH5Dk+O1xYbLMQrzY189updLvYwgIEV5Uo7 2Oc/SbnmhJCBjxS+EpaAil/0fVRh6ZDC/BjLiYrvRq4WF8P2a87BIFUy+cD09dXR HKUBp2bhAEAn7TWY1cbBofUb/NsaYu6gxI0iil/3Th8Q==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=EpDCBop4XMhqdq2/rMM0I7x+WtYdLK/lADDyMZAfp j4=; b=SlLONzwmOHvMySxG/CjTRT8ryOWHJOfXO+V0B/wNXeoL7ig4kaQBVnDhI DI8Oi/M1v5bB6meeYXqnVuy5fxqUoTHfs9YR786PbSJZFGQFBXiX07FmOlQWt4yV EfOWXM+25p74G4KLnkKnHDqY5BCuPMrSQpkYqlKxygjJ7HeXLUH2AZNUJt+Rk9l9 0Lvk1xT+snUd0ib+Qt/OBdP9RLPXrr8AWecxayDUdzrNkpDNWWRto+xTKqKMK8e7 ealc1lF4nACo2dwP2IOypdVnN0kbPfV3t2A/fZAdBj4TlA41AGn72FRuAEBtKIcf AN2yvXkzDhgQXEiWyZqzwg/8m661A==
- In-reply-to: <BAE67462-BF39-481A-BCD6-DE288FE6CC92@dana.is>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <1e5195bb-3126-8d0c-8a6a-1f5a5fd2a6c0@yahoo.fr> <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?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author