Your message dated Thu, 12 May 2016 12:40:57 +0200
with message-id <[email protected]>
and subject line Re: ksh: cd "" fails, does not conform to POSIX
has caused the Debian Bug report #824023,
regarding ksh: cd "" fails, does not conform to POSIX
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
824023: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=824023
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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

--- End Message ---
--- Begin Message ---
Closing since in the operands section it is said

  If /directory/ is an empty string, the results are unspecified.

-- 
Vincent Lefèvre <[email protected]> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

--- End Message ---

Reply via email to