Your message dated Wed, 19 Apr 2017 11:27:26 +0200 with message-id <[email protected]> and subject line Re: Bug#733501: dash: ignore -p argument to command (POSIX compliance issue) has caused the Debian Bug report #733501, regarding dash: ignores -p argument to command (POSIX compliance issue) 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.) -- 733501: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=733501 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: dash Version: 0.5.7-3 Severity: normal Tags: upstream dash claims to be a POSIX specific shell, that said it doesn't support all mandatory options for the 'command' utility. Quoting the POSIX specification [1]: | The following options shall be supported: | | -p | Perform the command search using a default value for PATH that is | guaranteed to find all of the standard utilities. dash seems to ignore this option and use PATH from the environment variable: | $ PATH="" /bin/dash -c "command -pv ls" ; echo $? | 127 | $ touch hello | $ chmod +x hello | $ PATH=".:$PATH" /bin/dash -c "command -pv hello" ; echo $? | ./hello | 0 bash uses the default PATH value as mandated by the specification: | $ PATH="" /bin/bash -c "command -pv ls" ; echo $? | /bin/ls | 0 | $ touch hello | $ chmod +x hello | $ PATH=".:$PATH" /bin/bash -c "command -pv hello" ; echo $? | 1 [1] http://pubs.opengroup.org/onlinepubs/9699919799/utilities/command.html -- System Information: Debian Release: jessie/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.12-1-amd64 (SMP w/4 CPU cores) Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages dash depends on: ii debianutils 4.4 ii dpkg 1.17.5 ii libc6 2.18-0experimental0 dash recommends no packages. dash suggests no packages. -- debconf information excluded
--- End Message ---
--- Begin Message ---Package: dash Version: 0.5.8-1 On 2013-12-29 13:39 +0100, Aurelien Jarno wrote: > Package: dash > Version: 0.5.7-3 > Severity: normal > Tags: upstream > > dash claims to be a POSIX specific shell, that said it doesn't support > all mandatory options for the 'command' utility. Quoting the POSIX > specification [1]: > > | The following options shall be supported: > | > | -p > | Perform the command search using a default value for PATH that is > | guaranteed to find all of the standard utilities. > > dash seems to ignore this option and use PATH from the environment > variable: Only in when -p and -v are combined, it seems. > | $ PATH="" /bin/dash -c "command -pv ls" ; echo $? > | 127 > | $ touch hello > | $ chmod +x hello > | $ PATH=".:$PATH" /bin/dash -c "command -pv hello" ; echo $? > | ./hello > | 0 This has been fixed in dash 0.5.8 by commit 65ae84b3d67425e16b85 ("[BUILTIN] command: allow combining -p with -v")[1]. I have verified it works correctly now. Cheers, Sven 1. https://git.kernel.org/pub/scm/utils/dash/dash.git/commit/?id=65ae84b3d67425e16b85273e566d06ae942dcce9
--- End Message ---

