Re: cd CDPATH is attempted before dir

2023-03-11 Thread sewn
On 2023-03-10 15:31, Theo Buehler wrote: While I have no opinion on whether this behavior makes sense, can or should be changed, I'm quite confident that this is not a bug. Well, since i got a solution that also solves another problem that i had; i can excuse the original issue and consider

Re: cd CDPATH is attempted before dir

2023-03-10 Thread sewn
March 10, 2023 at 2:52 PM, "Theo Buehler" wrote: > CDPATH Search path for the cd built-in command. It works the same > way as PATH for those directories not beginning with ‘/’ or > ‘.’ in cd commands. Note that if CDPATH is set and does not > contain ‘.’ or an empty path, the current director

cd CDPATH is attempted before dir

2023-03-10 Thread sewn
Hello, i am facing a bug on portable OpenBSD ksh, aka oksh; where cd will attempt to search for the given directory (if not provided as an absolute path) in CDPATH before checking it in the current working directory. A way to reproduce is the following: /tmp $ unset CDPATH /tmp