zsh-users
 help / color / mirror / code / Atom feed
From: Stephen Bach <9sjb@qlink.queensu.ca>
To: zsh-users@sunsite.dk
Subject: Issue redirecting zsh output
Date: Wed, 1 Sep 2004 19:50:02 -0400	[thread overview]
Message-ID: <20040901235002.GA30082@juniper> (raw)

Hello,

I'm looking for a way to redirect all output of an interactive shell session.
It seems to me that I would be able to do this with a call such as
"zsh >/dev/null 2>&1" (to get rid of it completely), but this doesn't seem to
be working 100%.

Below is the behaviour of bash, which works as I expected:

steve@juniper$ bash >/dev/null 2>&1
ls *
cat jdklhjshs
exit
steve@juniper$ 

And here is zsh (the '>' is to differentiate the zsh prompt from bash's '$'):
steve@juniper$ zsh >/dev/null 2>&1
steve@juniper> ls *
steve@juniper> cat jdklhjshs
steve@juniper> exit
steve@juniper$ 

As you can see, for some reason zsh's prompt is not redirected.  NB the
behaviour is the same if zsh is called from zsh instead of from bash.

Thanks for any insight!

Stephen


             reply	other threads:[~2004-09-01 23:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-01 23:50 Stephen Bach [this message]
2004-09-01 23:54 ` Stephen Bach
2004-09-02  3:41 ` Bart Schaefer
2004-09-03 15:59   ` Stephen Bach
2004-09-03 16:15     ` Peter Stephenson
2004-09-03 16:45       ` Stephen Bach

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=20040901235002.GA30082@juniper \
    --to=9sjb@qlink.queensu.ca \
    --cc=zsh-users@sunsite.dk \
    /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).