Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: $* assignment regression in shwordsplit
- X-seq: zsh-workers 40927
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: $* assignment regression in shwordsplit
- Date: Sun, 2 Apr 2017 17:58:51 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=aaFJpzpwrqjof54m6Y wY5Ln1MudrAG1Pk+yoBjBPnA8=; b=fDl3SRoSAJJhJei6PZFVt2j596BS2Y8gvZ 0KkbqpZVxsVLUBvycHsqpy6rokh0zlVtE59Bp7SxeOiasCh7TEbPXAX7PpOpOoNL oqJSj9Jwo9az8b3hG3MtibwhsEfyApMUXl2nidqlgpf1Ql9Vi9WgcixdvYW1x3YJ fNKvAdnmD2SElMTvVqU0KtJjlPo+mfxxQ8X6rO6kXiV7fWbmFsL1bxh/22yY5AM0 tQQT+s4V/rGWSqshA7VEM+u8q6+yNzkb/Y1BzTKLzO1995wktb1aMD0HzUSHoons y3V/8nuqoRrJ0OwDkicKr0xMWK9sOu/hzhxRMHg+L+AHcEFLs7eA==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=aaFJpzpwrqjof54m6Y wY5Ln1MudrAG1Pk+yoBjBPnA8=; b=qoFLrxsmPrqdtd0WtfEEDUZtiCCR9hpzNz u7Gb3s7DQaqcWpKsg30B/8+krdoroZaOYFiTOLrpT9RT9G6R2AkKgmAl+o9SZXWk 4YurjMMjUFlz2WjUkVyH2qTsPZbiboVdVs/cwBepZ5Wunigwj4lDmR73V9esd04V KfOvD0Gk/r8jkOW3H2W1jgpMBbCJ3zwJZTQ3OFEDkiPaAz6cW137r5h6QcQOSo7y +ECi/cX2aWnSBYNN1qoxkjZJ4XMQCH7b2F7s+2fwkex1x4E6+0qSf2bl/QzfK7Z8 mfoKSZD3kqHBnAjxRk8VvRLU2SWZ+49DKpFhWOLindLZ+nZsmrvA==
- In-reply-to: <662d58a2-94fd-657c-e414-452f48ef47fc@inlv.org>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <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@xxxxxxx>
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author