🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

2 total messages Started by jkh Thu, 03 Aug 1989 17:36
Bug in 1.02 bash CDPATH handling
#442
Author: jkh
Date: Thu, 03 Aug 1989 17:36
19 lines
1064 bytes
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?

				Jordan

-- 
--------
				Jordan Hubbard
				PCS Computer Systeme GmbH
				West Germany
	UUCP:			{uunet,decwrl}!pyramid!pcsbst!jkh
	ARPA:			jkh@violet.berkeley.edu

Hey! Leave that alone!
Bug in 1.02 bash CDPATH handling
#443
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads