Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!mips!pacbell.com!att!cbnews!lvc From: lvc@cbnews.att.com (lawrence.v.cipriani) Newsgroups: comp.unix.shell Subject: Re: ksh's cd tries to do too much Message-ID: <1991Mar22.151308.8705@cbnews.att.com> Date: 22 Mar 91 15:13:08 GMT References: <3604@risky.Convergent.COM> Organization: Ideology Busters, Inc. Lines: 20 In article <3604@risky.Convergent.COM> chrisb@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@cbvox.att.com "Fight fire with fire, I always say" -- Bugs Bunny