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

Fwd: exec - interactive vs non-interactive shell




Hi all,
could anybody explain what happens here?


zsh-4.3.11[t]% cat a_script
exec cat
ok
zsh-4.3.11[t]%


zsh-4.3.11[t]% zsh<  a_script
ok
zsh-4.3.11[t]% zsh -i<  a_script
zsh-4.3.11[t]%


No output with -i.


bash does the opposite:

zsh-4.3.11[t]% bash<  a_script
zsh-4.3.11[t]% bash -i<  a_script
4.2.8(1)-release$ exec cat
ok
zsh-4.3.11[t]%



Best regards
Dimitre




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