Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Opts -i and -s no longer work together, haven't for while
- X-seq: zsh-workers 33431
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Opts -i and -s no longer work together, haven't for while
- Date: Fri, 10 Oct 2014 23:12:23 -0700
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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