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

Opts -i and -s no longer work together, haven't for while



Here's zsh-2.4 (wow, ancient):

schaefer[792] src/zsh -si <<<'echo foo'
torch<502> foo
torch<503> % 

(exited -- the % there is the newer zsh printing the end-of-line mark)

But by the time we get to zsh-3.0.5:

schaefer[794] Src/zsh -fsi <<<'echo foo'
torch% 

(the shell is now reading from the terminal and ignores stdin)

I have no idea whether that was intentional.  Bash appears to work like
zsh-2.4 did.  The doc for -i explicitly says

-i
     Force shell to be interactive.  It is still possible to specify a
     script to execute.

but as far as I can tell "zsh -i" always simply sets $@ and never treats
its first argument as a script file.  So this has been broken for about
25 years ...



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