zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Martijn Dekker <martijn@inlv.org>,
	Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: [BUG] var=$* and var=$@ create array with SHWORDSPLIT and null or unset IFS
Date: Thu, 16 Feb 2017 21:14:31 -0800	[thread overview]
Message-ID: <170216211431.ZM25042@torch.brasslantern.com> (raw)
In-Reply-To: <62e5833f-14b1-b42b-31af-2f1532b565ed@inlv.org>

On Feb 17, 12:05am, Martijn Dekker wrote:
}
} In SHWORDSPLIT mode, if IFS is null (no field splitting) or unset
} (default fieldsplitting), both var=$* and var=$@ act like var=("$@"), so
} turn 'var' into an array.

This sounded naggingly familiar, and indeed:

    30299: "$*" was split with SHWORDSPLIT if IFS was empty or unset

Undoing 30299 fixes the bug Martijn is reporting here, but re-introduces
the incorrect splitting behavior.

I haven't gotten any further with it than that.


  parent reply	other threads:[~2017-02-17  5:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-16 23:05 Martijn Dekker
2017-02-17  0:07 ` Martijn Dekker
2017-02-17  5:14 ` Bart Schaefer [this message]
2017-02-20 18:58   ` Bart Schaefer
2017-02-20 21:20     ` Bart Schaefer
2017-02-20 22:13       ` Martijn Dekker

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=170216211431.ZM25042@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=martijn@inlv.org \
    --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).