From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24671 invoked from network); 1 Sep 2004 23:52:31 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 1 Sep 2004 23:52:31 -0000 Received: (qmail 44537 invoked from network); 1 Sep 2004 23:52:24 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 1 Sep 2004 23:52:24 -0000 Received: (qmail 27887 invoked by alias); 1 Sep 2004 23:51:05 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7962 Received: (qmail 27875 invoked from network); 1 Sep 2004 23:51:05 -0000 Received: from unknown (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 1 Sep 2004 23:51:05 -0000 Received: (qmail 40656 invoked from network); 1 Sep 2004 23:50:05 -0000 Received: from simmts12.bellnexxia.net (HELO simmts12-srv.bellnexxia.net) (206.47.199.141) by a.mx.sunsite.dk with SMTP; 1 Sep 2004 23:50:04 -0000 Received: from juniper ([69.157.62.152]) by simmts12-srv.bellnexxia.net (InterMail vM.5.01.06.10 201-253-122-130-110-20040306) with SMTP id <20040901234907.ODFI1580.simmts12-srv.bellnexxia.net@juniper> for ; Wed, 1 Sep 2004 19:49:07 -0400 Received: by juniper (sSMTP sendmail emulation); Wed, 1 Sep 2004 19:50:02 -0400 Date: Wed, 1 Sep 2004 19:50:02 -0400 From: Stephen Bach <9sjb@qlink.queensu.ca> To: zsh-users@sunsite.dk Subject: Issue redirecting zsh output Message-ID: <20040901235002.GA30082@juniper> Reply-To: 9sjb@qlink.queensu.ca Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.6i X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: * X-Spam-Status: No, hits=1.6 required=6.0 tests=BAYES_44,RCVD_IN_RFCI, RCVD_IN_SORBS autolearn=no version=2.63 X-Spam-Hits: 1.6 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