Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: cd $DIR_NAME problem



,- About Re: cd $DIR_NAME problem, P.Stephenson@xxxxxxxxxxxxx wrote:
|
| walkerjj@xxxxxxxxxxxxxxxxxxxxxxxxxxxx wrote:
| >
| > I found a very wierd problem by trying to run a GNU configure script.
| > A boiled down version is below:
| > % test_script
| >
| > 	DIR=test_dir
| > 	+ echo DIR is (test_dir)
| > 	DIR is (test_dir)
| > 	+ cd test_dir
| > 	test_script: test_dir: bad directory
|
| My guess is that CDPATH doesn't contain `.'.  Shells differ over
| whether they implicitly look in . anyway or don't in this case.  This
| hit me some time ago.

Thanks. the explanation is correct.
I'm not sure that this isn't a bug though- the situation seams to be:

If the 'cd' command uses a variable then require . to be in CDPATH
otherwise don't.

So Zsh seams to be in disagreement with itself.
Is this correct?

Joe.

--
  ____
 |___ | ___  ___   EMail: walkerjj@xxxxxxxxxxxxxxxxxxxxxx
 _  | |/ _ \| __|  SMail: Motorola, 16 Euroway, Blagrove, SWINDON SN58YQ
| |_| | (_) | _|   Tel:   [+44/0] 793 54 5346
 \___/ \___/|___|  Fax:   [+44/0] 793 54 1228



Messages sorted by: Reverse Date, Date, Thread, Author