Package: ksh Version: 93u+20120801-2 Severity: normal I get the following error:
$ cd "" ksh93: cd: bad directory which is incorrect according to POSIX: http://pubs.opengroup.org/onlinepubs/9699919799/utilities/cd.html See Step 5: 5. Starting with the first pathname in the <colon>-separated pathnames of CDPATH (see the ENVIRONMENT VARIABLES section) if the pathname is non-null, test if the concatenation of that pathname, a <slash> character if that pathname did not end with a <slash> character, and the directory operand names a directory. If the pathname is null, test if the concatenation of dot, a <slash> character, and the operand names a directory. In either case, if the resulting string names an existing directory, set curpath to that string and proceed to step 7. Otherwise, repeat this step with the next pathname in CDPATH until all pathnames have been tested. So, in general, this should change to the first directory of CDPATH, and if CDPATH is null (giving the case "If the pathname is null"), this means the current directory ".". ksh93 seems to be the only shell that behaves that way, the other ones behaving as expected. -- System Information: Debian Release: stretch/sid APT prefers unstable-debug APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.5.0-2-amd64 (SMP w/12 CPU cores) Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages ksh depends on: ii binfmt-support 2.1.6-1 ii libc6 2.22-7 ksh recommends no packages. ksh suggests no packages. -- no debconf information