ksh's cd tries to do too much
lawrence.v.cipriani
lvc at cbnews.att.com
Sat Mar 23 01:13:08 AEST 1991
In article <3604 at risky.Convergent.COM> chrisb at risky.Convergent.COM (Chris Bertin) writes:
>Ksh does some pre-parsing on the argument to 'cd'. It removes from the
>argument all the '..' and the name before the '..' (for optimization, I
>guess):
What version of ksh are you running? This was removed; it is not present
in ksh88f:
$ cd
$ mkdir -p $HOME/x/y
$ CDPATH=:$HOME/x
$ cd y/..
$ pwd
/usr6/lvc/x
Ksh will do a CDPATH search even if there are /'s in the path given to cd
and it will not do any sort of pre-parsing now.
--
Larry Cipriani, att!cbvox!lvc or lvc at cbvox.att.com
"Fight fire with fire, I always say" -- Bugs Bunny
More information about the Comp.unix.shell
mailing list