zsh-workers
 help / color / mirror / code / Atom feed
From: Wayne Davison <wayned@users.sourceforge.net>
To: Roumen Petrov <bugtrack@roumenpetrov.info>
Cc: Zsh Workers <zsh-workers@sunsite.dk>
Subject: Re: Word splitting with zsh fix
Date: Sun, 12 Feb 2006 10:45:38 -0800	[thread overview]
Message-ID: <20060212184538.GA25045@dot.blorf.net> (raw)
In-Reply-To: <43EF4EAA.6040507@roumenpetrov.info>

On Sun, Feb 12, 2006 at 05:05:14PM +0200, Roumen Petrov wrote:
> I would like to know if option SH_WORD_SPLIT is set problem is solved
> too?

Can you explain what you mean?  Because your test case works exactly
as it should in zsh:

% ./testcase
V1=v1 v2
V2=v1
V2=v2

(I note that your test case explicitly requested zsh, not bourne-shell
compatibility mode.)

If you wanted the first loop to split VAR on spaces, in zsh you need
to request that (when SH_WORD_SPLIT is not enabled):

for V in ${=VAR}; do
  echo V1=$V
done

..wayne..


  parent reply	other threads:[~2006-02-12 18:45 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-11 12:22 DervishD
2006-02-12  8:56 ` Ralf Wildenhues
2006-02-12 10:33   ` DervishD
2006-02-13 16:52     ` Ralf Wildenhues
2006-02-12 15:05 ` Roumen Petrov
2006-02-12 16:57   ` Andrey Borzenkov
2006-02-12 21:52     ` Roumen Petrov
2006-02-12 18:45   ` Wayne Davison [this message]
2006-02-12 21:52     ` Roumen Petrov
2006-02-13  8:46       ` Wayne Davison
2006-02-13 11:37   ` DervishD

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=20060212184538.GA25045@dot.blorf.net \
    --to=wayned@users.sourceforge.net \
    --cc=bugtrack@roumenpetrov.info \
    --cc=zsh-workers@sunsite.dk \
    /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).