Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: HOW TO distiguish between command input and forked subshell ?
- X-seq: zsh-workers 2111
- From: Zoltan Hidvegi <hzoli@xxxxxxxxxx>
- To: borsenkow.msk@xxxxxx
- Subject: Re: HOW TO distiguish between command input and forked subshell ?
- Date: Fri, 6 Sep 1996 12:47:46 +0200 (MET DST)
- Cc: zsh-workers@xxxxxxxxxxxxxxx, bart@xxxxxxxxxxxxxxxxxxx
- In-reply-to: <Pine.SV4.3.95.960906130237.14332A-100000@xxxxxxxxxxxxxxxxx> 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
> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author