🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.bash.bug
Article #443

Bug in 1.02 bash CDPATH handling

#443
From: Brian Fox
Date: Sun, 06 Aug 1989 15:38
25 lines
1480 bytes
   Date: 3 Aug 89 17:36:14 GMT
   From: mcvax!unido!pcsbst!jkh@uunet.uu.net  (jkh)
   Organization: PCS GmbH, Pfaelzer-Wald-Str. 36, 8000 Muenchen; West-Germany
   Sender: bug-bash-request@prep.ai.mit.edu

   Assuming that I've got a directory somewhere in my CDPATH called "foo"
   and a subdirectory under the current directory called "foo", isn't it
   logical to expect a "cd foo" to prefer the subdirectory? This is
   the way it works in our C-shell. It's kind of disconcerting to get
   suddenly boinked halfway across the filesystem when you were simply
   trying to enter a directory right in front of you. I thought CDPATH
   was only searched if the simple case failed?


CDPATH is checked first if it exists.  If you want the behaviour that
you didn't get, simple place "." in your CDPATH before anything else.
This is consistant with the way PATH works.  This is also more flexible
than the behaviour of Csh.

   CDPATH=.:$GNUSRC:$X11SRC

is the contents of my CDPATH variable.

Brian
Technical Details
Message-ID: <8908061538.AA01945@aurel.caltech.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!AUREL.CALTECH.EDU!bfox
References: <936@pcsbst.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!AUREL.CALTECH.EDU!bfox
From: bfox@AUREL.CALTECH.EDU (Brian Fox)
Newsgroups: gnu.bash.bug
Subject: Bug in 1.02 bash CDPATH handling
Message-ID: <8908061538.AA01945@aurel.caltech.edu>
Date: 6 Aug 89 15:38:01 GMT
References: <936@pcsbst.UUCP>
Sender: daemon@tut.cis.ohio-state.edu
Reply-To: bfox@aurel.caltech.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 25