From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11652 invoked from network); 16 Jan 1997 08:54:30 -0000 Received: from euclid.skiles.gatech.edu (list@130.207.146.50) by coral.primenet.com.au with SMTP; 16 Jan 1997 08:54:30 -0000 Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id EAA20184; Thu, 16 Jan 1997 04:00:48 -0500 (EST) Resent-Date: Thu, 16 Jan 1997 03:42:02 -0500 (EST) Date: Thu, 16 Jan 1997 11:44:16 +0300 (MSK) From: Andrej Borsenkow X-Sender: bor@itsrm1.mow.sni.de Reply-To: borsenkow.msk@sni.de To: Alain Caron cc: zsh-users@math.gatech.edu Subject: Re: How to turn sh_word_split on for a single command In-Reply-To: <199701151943.OAA11477@euclid.skiles.gatech.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Resent-Message-ID: <"VmDyF2.0.Gv4.QdUto"@euclid> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/607 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu On 15 Jan 1997, Alain Caron wrote: > > > In my .zprofile, I have to use a command similar to this one in order > to set-up my environment. > > eval `some_command | command_filter` > > My problem is that some_command is written for ksh/sh and I do not > have the sh_word_split option set. This causes the above command to > fail. > > It complains with the following error message: > zsh: no such file or directory: /usr/bin/X11/resize -u > which is clearly because of the sh_word_split option unset. > Hmmm ... % echo $ZSH_VERSION 3.1.0 % unsetopt | grep shwordsplit shwordsplit % cat =foo #!/sbin/zsh echo 'ls -x' % eval `foo` ... output of ls -x follows ... Could you be more specific about your command? E.g. % CMD='ls -x' % eval `$CMD` zsh: command not found: ls -x greetings ------------------------------------------------------------------------- Andrej Borsenkow Fax: +7 (095) 252 01 05 SNI ITS Moscow Tel: +7 (095) 252 13 88 NERV: borsenkow.msk E-Mail: borsenkow.msk@sni.de -------------------------------------------------------------------------