Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: How to turn sh_word_split on for a single command



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@xxxxxx
-------------------------------------------------------------------------




Messages sorted by: Reverse Date, Date, Thread, Author