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

zsh ignores the arguments on its first command.



Hi zsh maintainers,

This is a bug report.

It seems that when the shell is invoked using
zsh -i -c 'COMMAND1; COMMAND2'
then COMMAND1 is executed without its arguments!

$ ssh LUCID /bin/zsh -i -c '/bin/echo 1 2 3; /bin/echo 4 5 6; echo
ZSH_VERSION=${ZSH_VERSION}'
/etc/zsh/zshrc:10: unknown parameter: terminfo

4 5 6
ZSH_VERSION=4.3.10

but it definitely is executed, as you can see here:

$ ssh LUCID /bin/zsh -i -c 'pwd; echo ZSH_VERSION=${ZSH_VERSION}'
/etc/zsh/zshrc:10: unknown parameter: terminfo
/home/martinrb
ZSH_VERSION=4.3.10

That's a pretty serious bug, but should be easy for y'all to fix.

Thanks,

Martin



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