From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26180 invoked by alias); 8 Dec 2012 17:07:30 -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: 17467 Received: (qmail 20642 invoked from network); 8 Dec 2012 17:07:28 -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,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at closedmail.com does not designate permitted sender hosts) From: Bart Schaefer Message-id: <121208090711.ZM27197@torch.brasslantern.com> Date: Sat, 08 Dec 2012 09:07:11 -0800 In-reply-to: Comments: In reply to shawn wilson "Re: script help" (Dec 8, 10:43am) References: <20121208150911.GA15808@pug.qqx.org> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: Zsh Users Subject: Re: script help MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Dec 8, 10:43am, shawn wilson wrote: } } I don't think I understand this. how is a string different from zsh } splitting a variable up (I'm guessing an array based on ${=cmd})? http://zsh.sourceforge.net/FAQ/zshfaq03.html#31 } And I'm guessing this is different from how bash handles this? http://zsh.sourceforge.net/FAQ/zshfaq02.html#l10 The classic difference is word splitting, discussed in question 3.1; this catches out very many beginning zsh users. As explained there, this is actually a bug in every other shell. The answer is to set SH_WORD_SPLIT for backward compatibility. The next most classic difference is that unmatched glob patterns cause the command to abort; set NO_NOMATCH for those.