From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11485 invoked from network); 16 Dec 2003 10:21:40 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 16 Dec 2003 10:21:40 -0000 Received: (qmail 24510 invoked by alias); 16 Dec 2003 10:21:25 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6898 Received: (qmail 22633 invoked from network); 16 Dec 2003 08:34:43 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 16 Dec 2003 08:34:43 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [68.1.17.116] by sunsite.dk (MessageWall 1.0.8) with SMTP; 16 Dec 2003 8:34:43 -0000 Received: from quark.localdomain ([68.12.75.33]) by lakemtao05.cox.net (InterMail vM.5.01.06.05 201-253-122-130-105-20030824) with ESMTP id <20031216083443.FIEJ29834.lakemtao05.cox.net@quark.localdomain> for ; Tue, 16 Dec 2003 03:34:43 -0500 Received: from quark.localdomain (localhost.localdomain [127.0.0.1]) by quark.localdomain (8.12.9/8.12.9) with ESMTP id hBG8YnuO009183 for ; Tue, 16 Dec 2003 02:34:49 -0600 (CST) (envelope-from vince@quark.localdomain) Received: (from vince@localhost) by quark.localdomain (8.12.9/8.12.9/Submit) id hBG8Ynjt009182 for zsh-users@sunsite.dk; Tue, 16 Dec 2003 02:34:49 -0600 (CST) Date: Tue, 16 Dec 2003 02:34:49 -0600 From: Vincent Stemen To: zsh-users@sunsite.dk Subject: Splitting string to array removes pipe symbol Message-ID: <20031216083449.GA9113@quark.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i 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