zsh-workers
 help / color / mirror / code / Atom feed
From: Daniel Shahaf <d.s@daniel.shahaf.name>
To: zsh-workers@zsh.org
Subject: Re: $* assignment regression in shwordsplit
Date: Sun, 2 Apr 2017 17:58:51 +0000	[thread overview]
Message-ID: <20170402175851.GA10565@fujitsu.shahaf.local2> (raw)
In-Reply-To: <662d58a2-94fd-657c-e414-452f48ef47fc@inlv.org>

Martijn Dekker wrote on Sun, Apr 02, 2017 at 19:45:14 +0200:
> In the current zsh development version[*], there is a regression with
> assigning "$*" to a variable in shwordsplit mode when IFS is either
> unset or empty. The "$*" is only expanded the first time it occurs.
> 
> $ Src/zsh -f -c 'set -- one two; unset IFS; var=$*/$*; echo $var $*/$*;
> 	setopt shwordsplit; var=$*/$*; echo "$var" "$*/$*"'
> one two/one two one two/one two
> one two/$* one two/one two
> 
> $ Src/zsh -f -c 'set -- one two; IFS=; var=$*/$*; echo $var $*/$*;
> 	setopt shwordsplit; var=$*/$*; echo "$var" "$*/$*"'
> onetwo/onetwo onetwo/onetwo
> onetwo/$* onetwo/onetwo

Both of these bisect to:

commit 74fe4d0950d5db0bba9d8ec182c4a827728cff60
Author: Barton E. Schaefer <schaefer@zsh.org>
Date:   Mon Feb 20 13:22:55 2017 -0800

    40598: paramsubst() should always return scalar when PREFORK_SINGLE was passed

:100644 100644 0d3352a8e807172c7adcde89a7a769c1c704320c 60a5164d638eba63dcef57a7e7bbf7951ada4426 M      ChangeLog
:040000 040000 843e4c1065cbcdb63fb554ab97de69741351f78c e3d9d89d533c0cd63a7aaa0d714e232e024302ca M      Src



  parent reply	other threads:[~2017-04-02 18:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-02 17:45 Martijn Dekker
2017-04-02 17:49 ` Martijn Dekker
2017-04-02 17:58 ` Daniel Shahaf [this message]
2017-04-02 20:15   ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170402175851.GA10565@fujitsu.shahaf.local2 \
    --to=d.s@daniel.shahaf.name \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).