From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@zsh.org
Subject: Opts -i and -s no longer work together, haven't for while
Date: Fri, 10 Oct 2014 23:12:23 -0700 [thread overview]
Message-ID: <141010231223.ZM32612@torch.brasslantern.com> (raw)
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 ...
next reply other threads:[~2014-10-11 6:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-11 6:12 Bart Schaefer [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=141010231223.ZM32612@torch.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).