From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4541 invoked by alias); 8 Aug 2016 11:37:51 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 39003 Received: (qmail 7243 invoked from network); 8 Aug 2016 11:37:51 -0000 X-Qmail-Scanner-Diagnostics: from 195.159.176.226 by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(195.159.176.226):SA:0(1.3/5.0):. Processed in 0.10105 secs); 08 Aug 2016 11:37:51 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,RDNS_NONE autolearn=no autolearn_force=no version=3.4.1 X-Envelope-From: gcszd-zsh-workers@m.gmane.org X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at m.gmane.org does not designate permitted sender hosts) X-Injected-Via-Gmane: http://gmane.org/ To: zsh-workers@zsh.org From: Stephane Chazelas Subject: [bug] shwordsplit not working on $@ when $# > 1 Date: Mon, 8 Aug 2016 12:16:26 +0100 Message-ID: <20160808111626.GA19766@chaz.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@blaine.gmane.org User-Agent: Mutt/1.5.21 (2010-09-15) Content-Disposition: inline Bug found by BinaryZebra (https://unix.stackexchange.com/questions/301277/zsh-fail-to-keep-unquoted-and-equal) It looks like the elements of $@ only undergo splitting when $# is 1: ~$ zsh -o shwordsplit -c 'IFS=:; echo $@' zsh a:b a b ~$ zsh -o shwordsplit -c 'IFS=:; echo $@' zsh a:b c a:b c Also reproduced with current git head. (note that it affects shwordsplit, but not globsubst) -- Stephane