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

Re: Problematic change in alias behavior in pre3



schaefer@xxxxxxxxxxxxxxxxxxxxxxx wrote:
> It's not sufficient to assign incmdpos=0 when ENVARRAY, because then this
> kind of thing fails:
> 
> zsh% alias foo='echo help'
> zsh% show=(stuff) foo bar
> zsh: command not found: foo

No objection to the fix, but is it clear this is kind of thing is
useful anyway?  Arrays don't seem to get exported in this fashion, not
even space-concatenated.

% show=stuff zsh -c 'printenv show'
stuff
% show=(stuff) zsh -c 'printenv show'
<zilch>

-- 
Peter Stephenson <pws@xxxxxx>       Tel: +49 33762 77366
WWW:  http://www.ifh.de/~pws/       Fax: +49 33762 77330
Deutches Electronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen
DESY-IfH, 15735 Zeuthen, Germany.




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