zsh-users
 help / color / mirror / code / Atom feed
From: "Radoulov, Dimitre" <cichomitiko@gmail.com>
To: zsh-users@zsh.org
Subject: Fwd: exec - interactive vs non-interactive shell
Date: Wed, 01 Jun 2011 21:55:04 +0200	[thread overview]
Message-ID: <4DE69918.4040205@gmail.com> (raw)


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



             reply	other threads:[~2011-06-01 19:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-01 19:55 Radoulov, Dimitre [this message]
2011-06-01 20:42 ` Peter Stephenson
2011-06-01 22:03   ` Radoulov, Dimitre
2011-06-02  8:59     ` Peter Stephenson
2011-06-02  9:37       ` Radoulov, Dimitre

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=4DE69918.4040205@gmail.com \
    --to=cichomitiko@gmail.com \
    --cc=zsh-users@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).