zsh-users
 help / color / mirror / code / Atom feed
From: Vincent Stemen <zsh@hightek.org>
To: zsh-users@sunsite.dk
Subject: Splitting string to array removes pipe symbol
Date: Tue, 16 Dec 2003 02:34:49 -0600	[thread overview]
Message-ID: <20031216083449.GA9113@quark.localdomain> (raw)

Greetings.

First, let me take this opportunity to say thank you for such a
wonderful shell.  After switching over to Z shell I would never want
to go back to any of the previous shells.  Bash has served me well
over the years, but I am burning my bridge behind me.

I am working on a script that splits a string into an array in
preparation for execution with something like

  cmd="uncompress foobar | cpio -i --quiet --unconditional"
  cmd=($=cmd)

However, when the globsubst option is set, it removes the pipe '|'
symbol when it does the split.  Here is the trace output.

  +./t:62> cmd=uncompress foobar | cpio -i --quiet --unconditional
  +./t:63> cmd=( uncompress foobar cpio -i --quiet --unconditional )

If this is not a bug, then I must not fully understand the function of
GLOB_SUBST.  I have it set so that variables with wild cards, etc in
them will expand to a list of filenames.  Why would it remove the pipe
from the string in this case?

I am running zsh-4.1.0.dev5 on FreeBSD-5.1 in case it is relevant.

Regards,
Vincent

-- 
Vincent Stemen
Avoid the VeriSign/Network Solutions domain registration trap!
http://www.InetAddresses.net


             reply	other threads:[~2003-12-16 10:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-16  8:34 Vincent Stemen [this message]
2003-12-16 10:51 ` Peter Stephenson
2003-12-19  6:47   ` Vincent Stemen

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=20031216083449.GA9113@quark.localdomain \
    --to=zsh@hightek.org \
    --cc=zsh-users@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).