Thread View: gnu.bash.bug
1 messages
1 total messages
Started by Andrew Thomas
Wed, 14 Jun 1989 19:49
Order of operations for cdpath checking
Author: Andrew Thomas
Date: Wed, 14 Jun 1989 19:49
Date: Wed, 14 Jun 1989 19:49
21 lines
1298 bytes
1298 bytes
I am using bash 0.99 on a uVax II running Ultrix 2.0: in the following conditions: - there exists a directory /tmp/docs - there exists another dir /tmp/docs/docs - my pwd is /tmp/docs - my CDPATH = /tmp/ if I type bash> cd docs I end up in /tmp/docs, not /tmp/docs/docs. Basically, bash is checking the directories in CDPATH before my current directory. Is this intentional? This can be avoided by setting CDPATH to ./:/tmp/ but it forces this to be a conscious decision. tcsh uses cdpath as a list of directories to be searched only if the directory is not found in the pwd. Bash's behaviour is more general, but provides a trap for novice users, or people coming from tcsh-like shells. Andrew Thomas andrewt@watsnew.waterloo.edu Systems Design Eng. University of Waterloo "If a million people do a stupid thing, it's still a stupid thing." - Opus
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