From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from euclid.skiles.gatech.edu (list@euclid.skiles.gatech.edu [130.207.146.50]) by coral.primenet.com.au (8.7.5/8.7.3) with ESMTP id UAA01490 for ; Fri, 6 Sep 1996 20:53:18 +1000 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id GAA06151; Fri, 6 Sep 1996 06:49:31 -0400 (EDT) Resent-Date: Fri, 6 Sep 1996 06:49:31 -0400 (EDT) From: Zoltan Hidvegi Message-Id: <199609061047.MAA24850@bolyai.cs.elte.hu> Subject: Re: HOW TO distiguish between command input and forked subshell ? To: borsenkow.msk@sni.de Date: Fri, 6 Sep 1996 12:47:46 +0200 (MET DST) Cc: zsh-workers@math.gatech.edu, bart@sunny.netmanage.com In-Reply-To: from Andrej Borsenkow at "Sep 6, 96 01:08:49 pm" Organization: Dept. of Comp. Sci., Eotvos University, Budapest, Hungary Phone: (36 1)2669833 ext: 2667, home phone: (36 1) 2752368 X-Mailer: ELM [version 2.4ME+ PL16 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Resent-Message-ID: <"ia8pW2.0.1W1.x60Co"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/2111 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu > if I cd to non-local directory using CDPATH, cd will report current > directory after changing to it. I always found it boring (as I have > directory in prompt anyway) and suggested the option to shut it off. The > answer was (as expected ;) that I can use > > cd () { builtin cd $* > /dev/null } > > Well, it works, but any output from chdir() is also lost :( I don't > know, if it is right, that chdir() is using the same descriptor as cd, but > if it is to be so, may be new option is still useful? I assume that chdir above was really ment to be chpwd. Chpwd output is not lost if it is redirected to stderr. Zoltan