Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Equivalent of set -- *(DN) in sh
- X-seq: zsh-users 19739
- From: Roman Neuhauser <neuhauser@xxxxxxxxxx>
- To: Nikolai Weibull <now@xxxxxxx>
- Subject: Re: Equivalent of set -- *(DN) in sh
- Date: Sun, 18 Jan 2015 20:07:23 +0100
- Cc: Zsh Users <zsh-users@xxxxxxx>
- In-reply-to: <CADdV=MvMtwYczr82GeYkmVwTFCKgFcbgYS71XdnHZN_JqFqzTg@mail.gmail.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>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CADdV=MvMtwYczr82GeYkmVwTFCKgFcbgYS71XdnHZN_JqFqzTg@mail.gmail.com>
# now@xxxxxxx / 2015-01-18 19:28:42 +0100:
> Is there any way to get the equivalent of Zsh´s
>
> set -- *(DN)
>
> in sh? Most important here would be NULL_GLOB, as, by default, sh
> simply leaves the * if there are no files to match.
set -- $(find .* * -maxdepth 0 -type d)
does not handle names with spaces.
--
roman
Messages sorted by:
Reverse Date,
Date,
Thread,
Author