From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2309 invoked by alias); 18 Jan 2015 19:18:05 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 19739 Received: (qmail 7466 invoked from network); 18 Jan 2015 19:18:01 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.2 Date: Sun, 18 Jan 2015 20:07:23 +0100 From: Roman Neuhauser To: Nikolai Weibull Cc: Zsh Users Subject: Re: Equivalent of set -- *(DN) in sh Message-ID: <20150118190723.GG979@isis.sigpipe.cz> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) # now@disu.se / 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