Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Get the result of the last glob
- X-seq: zsh-users 24170
- From: "Daniel Shahaf" <d.s@xxxxxxxxxxxxxxxxxx>
- To: "Aryn Starr" <whereislelouch@xxxxxxxxxx>
- Subject: Re: Get the result of the last glob
- Date: Wed, 21 Aug 2019 14:47:31 +0000
- Cc: 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; s=fm1; bh=m9aG mcJJtuEcK0vn2FjE7SLyl8A1DuD4AkgAyyqsFhI=; b=pxzh68e4H3IM6PqgwXRh sXuraNKuXN0Tq+FAuZrrnsmoBNzxKAEg5zo7f/9zLmCjCmm3LNOASfspdmE3ZK6x HzBNhtcrCJnN2Z9WreC3wV3v0rRhXiJ6gIyQZJ+jM4UU5TAAqkkTgMrKT6AFSgjd lGEi5qrx9O8v1mXsdz9iVYWiPNYl/34uFwJ/9UGfJSuREQtqgol0BNiYevVhhR+b ZaRxZjkz2sF8mwFMpF7LCrxcBPliFb4cWti5KiNOm1R61ZVOsIJofiUrOJEtXapf hVAKDOmM4IPSN/WYkYLdFc7dJcNWm3PmzKPM9smwaKAgnAD2nD2alhR3VE8iIs45 ug==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=m9aGmc JJtuEcK0vn2FjE7SLyl8A1DuD4AkgAyyqsFhI=; b=EH7Pd4BWmJxDDvDbDEwz/r HhgWxzvnwFlY/YaVcZ0smysw5Y6lpKq3trXdTU18pRdV14vJ0lYeahWcYdK2bWnj rD/HiRV0eWx0NDSLVNnGLMo+XKwSbTsJUAoh70twm8wriFl68TDKKIML8C1rkwIy 3XsOk2uvGC50ZF65zukitZA2/qm/p87lFUdj0c9t2JkUYtiftBSglxv4SzIDvsEZ 09CjLOas9j3m2Cc6U4IhlmoD0/F99Ta9mhugdqH+y9DdVxt26dp1BuzyEgsTB17Q atbxY32/kxCXPX9hPSaHd7RSERFiFQ1375z/fghy9ldW5aK+GfOdCX09kuMT01iQ ==
- In-reply-to: <721145FA-3F01-473F-8DEE-8047E5065A47@icloud.com>
- 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: <918ED85F-9DE5-4365-B962-45AD4AADDF46@icloud.com> <2630172a-ed53-48e8-b684-48b8bb59c5f6@www.fastmail.com> <721145FA-3F01-473F-8DEE-8047E5065A47@icloud.com>
Aryn Starr wrote on Wed, 21 Aug 2019 14:40 +00:00:
> Thanks. I needed this to be non-interactive, and I indeed created a
> function for it, I was just wondering if it was possible to get the
> glob in a magic variable or sth, which it seems it is not.
Of course it's possible:
() { typeset -p argv } *
set -- *; typeset -p argv
l=( * )
for i in * ; typeset -p $i
Messages sorted by:
Reverse Date,
Date,
Thread,
Author