zsh-users
 help / color / mirror / code / Atom feed
* Issue redirecting zsh output
@ 2004-09-01 23:50 Stephen Bach
  2004-09-01 23:54 ` Stephen Bach
  2004-09-02  3:41 ` Bart Schaefer
  0 siblings, 2 replies; 6+ messages in thread
From: Stephen Bach @ 2004-09-01 23:50 UTC (permalink / raw)
  To: zsh-users

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


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

end of thread, other threads:[~2004-09-03 16:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-01 23:50 Issue redirecting zsh output Stephen Bach
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

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