zsh-workers
 help / color / mirror / code / Atom feed
* Opts -i and -s no longer work together, haven't for while
@ 2014-10-11  6:12 Bart Schaefer
  2014-10-11 16:52 ` Bart Schaefer
  0 siblings, 1 reply; 5+ messages in thread
From: Bart Schaefer @ 2014-10-11  6:12 UTC (permalink / raw)
  To: zsh-workers

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 ...


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-10-12 17:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-11  6:12 Opts -i and -s no longer work together, haven't for while Bart Schaefer
2014-10-11 16:52 ` Bart Schaefer
2014-10-11 20:07   ` Bart Schaefer
2014-10-12 17:06     ` Peter Stephenson
2014-10-12 17:42       ` Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).