Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • Note that in the case of ksh93, CDPATH=/tmp ksh -c 'cd ..' does not cd to /tmp/.. (while it does for go to /tmp/. for cd .) Commented Jan 19, 2018 at 9:34
  • The CDPATH feature comes either from the Bourne shell (already in SVR1 in 1983, not in the initial version in V7), or possibly ksh (which is from around the same time (1983), but I never found much information on it before ksh86), and already then cd . or .. would not consider CDPATH, still not documented (except with comments in the code as seen in ksh86 source code). Commented Jan 19, 2018 at 9:41
  • Note that the behaviour is documented in tcsh Commented Jan 19, 2018 at 9:41
  • ksh86 code Commented Jan 19, 2018 at 9:46