Activity log for bug #1792004

Date Who What changed Old value New value Message
2018-09-11 18:57:48 Dimitri John Ledkov bug added bug
2018-09-11 18:58:00 Dimitri John Ledkov bug task added dash (Ubuntu)
2018-09-11 19:08:39 Dimitri John Ledkov bug task added pam (Ubuntu)
2018-09-11 19:08:47 Dimitri John Ledkov bug task added systemd (Ubuntu)
2018-09-11 19:09:04 Dimitri John Ledkov summary built-in PATH seems to have sbin and bin out of order built-in PATH seems to have sbin and bin out of order; and inconsistent
2018-09-11 19:12:52 Dimitri John Ledkov description $ env -u PATH /bin/sh -c 'echo $PATH' /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin $ env -u PATH /bin/dash -c 'echo $PATH' /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin $ systemd-run --unit test-env env # ... and check journal for PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin $ env -u PATH /bin/bash -c 'echo $PATH' /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. $ cat /etc/environment PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" Imho all of these should be harmonised to: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin $ env -u PATH /bin/sh -c 'echo $PATH' /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin $ env -u PATH /bin/dash -c 'echo $PATH' /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin $ systemd-run --unit test-env env # ... and check journal for PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin $ env -u PATH /bin/bash -c 'echo $PATH' /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. $ cat /etc/environment PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" Imho all of these should be harmonised to: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin === From a duplicate: $ for i in 12.04 12.10 13.04 13.10 14.04 14.10 15.04 15.10 16.04; do echo $i; docker run -it --rm ubuntu:$i bash -c "unset PATH; /bin/bash -c 'echo \$PATH'"; done 12.04 /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 12.10 /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 13.04 /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 13.10 /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 14.04 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. 14.10 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. 15.04 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. 15.10 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. 16.04 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. I believe later releases of bash, do too include CWD in the built-in PATH.
2018-09-11 19:13:22 Dimitri John Ledkov bug watch added https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=781367
2018-09-11 19:13:22 Dimitri John Ledkov bug task added bash (Debian)
2018-09-11 19:13:49 Dimitri John Ledkov description $ env -u PATH /bin/sh -c 'echo $PATH' /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin $ env -u PATH /bin/dash -c 'echo $PATH' /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin $ systemd-run --unit test-env env # ... and check journal for PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin $ env -u PATH /bin/bash -c 'echo $PATH' /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. $ cat /etc/environment PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" Imho all of these should be harmonised to: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin === From a duplicate: $ for i in 12.04 12.10 13.04 13.10 14.04 14.10 15.04 15.10 16.04; do echo $i; docker run -it --rm ubuntu:$i bash -c "unset PATH; /bin/bash -c 'echo \$PATH'"; done 12.04 /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 12.10 /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 13.04 /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 13.10 /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 14.04 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. 14.10 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. 15.04 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. 15.10 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. 16.04 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. I believe later releases of bash, do too include CWD in the built-in PATH. $ env -u PATH /bin/sh -c 'echo $PATH' /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin $ env -u PATH /bin/dash -c 'echo $PATH' /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin $ systemd-run --unit test-env env # ... and check journal for PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin $ env -u PATH /bin/bash -c 'echo $PATH' /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. $ cat /etc/environment PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" Imho all of these should be harmonised to: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin === From a duplicate https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1614080 : $ for i in 12.04 12.10 13.04 13.10 14.04 14.10 15.04 15.10 16.04; do echo $i; docker run -it --rm ubuntu:$i bash -c "unset PATH; /bin/bash -c 'echo \$PATH'"; done 12.04 /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 12.10 /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 13.04 /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 13.10 /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 14.04 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. 14.10 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. 15.04 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. 15.10 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. 16.04 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. I believe later releases of bash, do too include CWD in the built-in PATH.
2018-09-11 19:17:21 Dimitri John Ledkov description $ env -u PATH /bin/sh -c 'echo $PATH' /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin $ env -u PATH /bin/dash -c 'echo $PATH' /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin $ systemd-run --unit test-env env # ... and check journal for PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin $ env -u PATH /bin/bash -c 'echo $PATH' /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. $ cat /etc/environment PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" Imho all of these should be harmonised to: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin === From a duplicate https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1614080 : $ for i in 12.04 12.10 13.04 13.10 14.04 14.10 15.04 15.10 16.04; do echo $i; docker run -it --rm ubuntu:$i bash -c "unset PATH; /bin/bash -c 'echo \$PATH'"; done 12.04 /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 12.10 /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 13.04 /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 13.10 /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 14.04 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. 14.10 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. 15.04 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. 15.10 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. 16.04 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. I believe later releases of bash, do too include CWD in the built-in PATH. $ env -u PATH /bin/sh -c 'echo $PATH' /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin $ env -u PATH /bin/dash -c 'echo $PATH' /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin $ systemd-run --unit test-env env # ... and check journal for PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin $ env -u PATH /bin/bash -c 'echo $PATH' /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. $ env -u PATH /bin/busybox sh -c 'echo $PATH' /sbin:/usr/sbin:/bin:/usr/bin $ cat /etc/environment PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" Imho all of these should be harmonised to: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin === From a duplicate https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1614080 : $ for i in 12.04 12.10 13.04 13.10 14.04 14.10 15.04 15.10 16.04; do echo $i; docker run -it --rm ubuntu:$i bash -c "unset PATH; /bin/bash -c 'echo \$PATH'"; done 12.04 /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 12.10 /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 13.04 /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 13.10 /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 14.04 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. 14.10 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. 15.04 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. 15.10 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. 16.04 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. I believe later releases of bash, do too include CWD in the built-in PATH.
2018-09-11 19:17:30 Dimitri John Ledkov bug task added busybox (Ubuntu)
2018-09-11 19:21:27 Dimitri John Ledkov description $ env -u PATH /bin/sh -c 'echo $PATH' /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin $ env -u PATH /bin/dash -c 'echo $PATH' /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin $ systemd-run --unit test-env env # ... and check journal for PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin $ env -u PATH /bin/bash -c 'echo $PATH' /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. $ env -u PATH /bin/busybox sh -c 'echo $PATH' /sbin:/usr/sbin:/bin:/usr/bin $ cat /etc/environment PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" Imho all of these should be harmonised to: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin === From a duplicate https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1614080 : $ for i in 12.04 12.10 13.04 13.10 14.04 14.10 15.04 15.10 16.04; do echo $i; docker run -it --rm ubuntu:$i bash -c "unset PATH; /bin/bash -c 'echo \$PATH'"; done 12.04 /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 12.10 /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 13.04 /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 13.10 /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 14.04 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. 14.10 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. 15.04 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. 15.10 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. 16.04 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. I believe later releases of bash, do too include CWD in the built-in PATH. $ env -u PATH /bin/sh -c 'echo $PATH' /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin $ env -u PATH /bin/dash -c 'echo $PATH' /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin $ systemd-run --unit test-env env # ... and check journal for PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin $ env -u PATH /bin/bash -c 'echo $PATH' /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. $ env -u PATH /bin/busybox sh -c 'echo $PATH' /sbin:/usr/sbin:/bin:/usr/bin $ grep 'export PATH=' -r initramfs-tools-0.131ubuntu10/ initramfs-tools-0.131ubuntu10/mkinitramfs:export PATH='/usr/bin:/sbin:/bin' initramfs-tools-0.131ubuntu10/init:export PATH=/sbin:/usr/sbin:/bin:/usr/bin $ cat /etc/environment PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" Imho all of these should be harmonised to: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin === From a duplicate https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1614080 : $ for i in 12.04 12.10 13.04 13.10 14.04 14.10 15.04 15.10 16.04; do echo $i; docker run -it --rm ubuntu:$i bash -c "unset PATH; /bin/bash -c 'echo \$PATH'"; done 12.04 /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 12.10 /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 13.04 /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 13.10 /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 14.04 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. 14.10 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. 15.04 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. 15.10 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. 16.04 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. I believe later releases of bash, do too include CWD in the built-in PATH.
2018-09-11 19:23:29 Dimitri John Ledkov description $ env -u PATH /bin/sh -c 'echo $PATH' /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin $ env -u PATH /bin/dash -c 'echo $PATH' /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin $ systemd-run --unit test-env env # ... and check journal for PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin $ env -u PATH /bin/bash -c 'echo $PATH' /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. $ env -u PATH /bin/busybox sh -c 'echo $PATH' /sbin:/usr/sbin:/bin:/usr/bin $ grep 'export PATH=' -r initramfs-tools-0.131ubuntu10/ initramfs-tools-0.131ubuntu10/mkinitramfs:export PATH='/usr/bin:/sbin:/bin' initramfs-tools-0.131ubuntu10/init:export PATH=/sbin:/usr/sbin:/bin:/usr/bin $ cat /etc/environment PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" Imho all of these should be harmonised to: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin === From a duplicate https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1614080 : $ for i in 12.04 12.10 13.04 13.10 14.04 14.10 15.04 15.10 16.04; do echo $i; docker run -it --rm ubuntu:$i bash -c "unset PATH; /bin/bash -c 'echo \$PATH'"; done 12.04 /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 12.10 /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 13.04 /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 13.10 /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 14.04 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. 14.10 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. 15.04 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. 15.10 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. 16.04 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. I believe later releases of bash, do too include CWD in the built-in PATH. $ env -u PATH /bin/sh -c 'echo $PATH' /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin $ env -u PATH /bin/dash -c 'echo $PATH' /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin $ systemd-run --unit test-env env # ... and check journal for PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin $ env -u PATH /bin/bash -c 'echo $PATH' /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. $ env -u PATH /bin/busybox sh -c 'echo $PATH' /sbin:/usr/sbin:/bin:/usr/bin $ grep 'export PATH=' -r initramfs-tools-0.131ubuntu10/ initramfs-tools-0.131ubuntu10/mkinitramfs:export PATH='/usr/bin:/sbin:/bin' initramfs-tools-0.131ubuntu10/init:export PATH=/sbin:/usr/sbin:/bin:/usr/bin dracut.sh has DRACUT_PATH=${DRACUT_PATH:-/sbin /bin /usr/sbin /usr/bin} exported as PATH dracut-047+31/modules.d/99shutdown/shutdown.sh:export PATH=/usr/sbin:/usr/bin:/sbin:/bin $ cat /etc/environment PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" Imho all of these should be harmonised to: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin === From a duplicate https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1614080 : $ for i in 12.04 12.10 13.04 13.10 14.04 14.10 15.04 15.10 16.04; do echo $i; docker run -it --rm ubuntu:$i bash -c "unset PATH; /bin/bash -c 'echo \$PATH'"; done 12.04 /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 12.10 /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 13.04 /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 13.10 /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 14.04 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. 14.10 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. 15.04 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. 15.10 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. 16.04 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. I believe later releases of bash, do too include CWD in the built-in PATH.
2018-09-11 19:25:12 Dimitri John Ledkov bug task added apt (Ubuntu)
2018-09-11 19:25:19 Dimitri John Ledkov bug task added dpkg (Ubuntu)
2018-09-11 19:26:36 Dimitri John Ledkov description $ env -u PATH /bin/sh -c 'echo $PATH' /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin $ env -u PATH /bin/dash -c 'echo $PATH' /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin $ systemd-run --unit test-env env # ... and check journal for PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin $ env -u PATH /bin/bash -c 'echo $PATH' /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. $ env -u PATH /bin/busybox sh -c 'echo $PATH' /sbin:/usr/sbin:/bin:/usr/bin $ grep 'export PATH=' -r initramfs-tools-0.131ubuntu10/ initramfs-tools-0.131ubuntu10/mkinitramfs:export PATH='/usr/bin:/sbin:/bin' initramfs-tools-0.131ubuntu10/init:export PATH=/sbin:/usr/sbin:/bin:/usr/bin dracut.sh has DRACUT_PATH=${DRACUT_PATH:-/sbin /bin /usr/sbin /usr/bin} exported as PATH dracut-047+31/modules.d/99shutdown/shutdown.sh:export PATH=/usr/sbin:/usr/bin:/sbin:/bin $ cat /etc/environment PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" Imho all of these should be harmonised to: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin === From a duplicate https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1614080 : $ for i in 12.04 12.10 13.04 13.10 14.04 14.10 15.04 15.10 16.04; do echo $i; docker run -it --rm ubuntu:$i bash -c "unset PATH; /bin/bash -c 'echo \$PATH'"; done 12.04 /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 12.10 /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 13.04 /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 13.10 /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 14.04 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. 14.10 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. 15.04 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. 15.10 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. 16.04 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. I believe later releases of bash, do too include CWD in the built-in PATH. $ env -u PATH /bin/sh -c 'echo $PATH' /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin $ env -u PATH /bin/dash -c 'echo $PATH' /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin $ systemd-run --unit test-env env # ... and check journal for PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin $ env -u PATH /bin/bash -c 'echo $PATH' /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. $ env -u PATH /bin/busybox sh -c 'echo $PATH' /sbin:/usr/sbin:/bin:/usr/bin $ grep 'export PATH=' -r initramfs-tools-0.131ubuntu10/ initramfs-tools-0.131ubuntu10/mkinitramfs:export PATH='/usr/bin:/sbin:/bin' initramfs-tools-0.131ubuntu10/init:export PATH=/sbin:/usr/sbin:/bin:/usr/bin dracut.sh has DRACUT_PATH=${DRACUT_PATH:-/sbin /bin /usr/sbin /usr/bin} exported as PATH dracut-047+31/modules.d/99shutdown/shutdown.sh:export PATH=/usr/sbin:/usr/bin:/sbin:/bin $ cat /etc/environment PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" apt & dpkg => should probably initiate /usr/local-less PATH Imho the rest should probably be harmonised to: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin === From a duplicate https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1614080 : $ for i in 12.04 12.10 13.04 13.10 14.04 14.10 15.04 15.10 16.04; do echo $i; docker run -it --rm ubuntu:$i bash -c "unset PATH; /bin/bash -c 'echo \$PATH'"; done 12.04 /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 12.10 /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 13.04 /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 13.10 /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 14.04 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. 14.10 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. 15.04 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. 15.10 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. 16.04 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. I believe later releases of bash, do too include CWD in the built-in PATH.
2018-09-11 20:49:07 Joshua Powers bug added subscriber Joshua Powers
2018-09-11 21:28:02 Jay Vosburgh bug added subscriber Jay Vosburgh
2018-09-12 03:44:10 Bug Watch Updater bash (Debian): status Unknown New
2018-09-13 05:44:33 Launchpad Janitor bash (Ubuntu): status New Fix Released
2019-04-30 14:27:57 Dimitri John Ledkov description $ env -u PATH /bin/sh -c 'echo $PATH' /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin $ env -u PATH /bin/dash -c 'echo $PATH' /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin $ systemd-run --unit test-env env # ... and check journal for PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin $ env -u PATH /bin/bash -c 'echo $PATH' /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. $ env -u PATH /bin/busybox sh -c 'echo $PATH' /sbin:/usr/sbin:/bin:/usr/bin $ grep 'export PATH=' -r initramfs-tools-0.131ubuntu10/ initramfs-tools-0.131ubuntu10/mkinitramfs:export PATH='/usr/bin:/sbin:/bin' initramfs-tools-0.131ubuntu10/init:export PATH=/sbin:/usr/sbin:/bin:/usr/bin dracut.sh has DRACUT_PATH=${DRACUT_PATH:-/sbin /bin /usr/sbin /usr/bin} exported as PATH dracut-047+31/modules.d/99shutdown/shutdown.sh:export PATH=/usr/sbin:/usr/bin:/sbin:/bin $ cat /etc/environment PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" apt & dpkg => should probably initiate /usr/local-less PATH Imho the rest should probably be harmonised to: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin === From a duplicate https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1614080 : $ for i in 12.04 12.10 13.04 13.10 14.04 14.10 15.04 15.10 16.04; do echo $i; docker run -it --rm ubuntu:$i bash -c "unset PATH; /bin/bash -c 'echo \$PATH'"; done 12.04 /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 12.10 /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 13.04 /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 13.10 /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 14.04 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. 14.10 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. 15.04 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. 15.10 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. 16.04 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. I believe later releases of bash, do too include CWD in the built-in PATH. [Impact] * For consistency reasons sbin should be ordered before bin in PATH. [Test Case] * $ env -u PATH /bin/bash -c 'echo $PATH' And check that matching pairs in PATH, have /sbin variant leading /bin variant. [Regression Potential] * Ubuntu does not ship duplicate binries, with different behaviour between /sbin and /bin, thus all binaries will continue to be found in all locations. Also PATH is normally already set in the environment, and this change only affects the fallback path when bash is executed without any environment, i.e. booting with 'init=/bin/bash' [Other Info] * Original bug report detailing inconsistent paths between various shells. --- $ env -u PATH /bin/sh -c 'echo $PATH' /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin $ env -u PATH /bin/dash -c 'echo $PATH' /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin $ systemd-run --unit test-env env # ... and check journal for PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin $ env -u PATH /bin/bash -c 'echo $PATH' /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. $ env -u PATH /bin/busybox sh -c 'echo $PATH' /sbin:/usr/sbin:/bin:/usr/bin $ grep 'export PATH=' -r initramfs-tools-0.131ubuntu10/ initramfs-tools-0.131ubuntu10/mkinitramfs:export PATH='/usr/bin:/sbin:/bin' initramfs-tools-0.131ubuntu10/init:export PATH=/sbin:/usr/sbin:/bin:/usr/bin dracut.sh has DRACUT_PATH=${DRACUT_PATH:-/sbin /bin /usr/sbin /usr/bin} exported as PATH dracut-047+31/modules.d/99shutdown/shutdown.sh:export PATH=/usr/sbin:/usr/bin:/sbin:/bin $ cat /etc/environment PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" apt & dpkg => should probably initiate /usr/local-less PATH Imho the rest should probably be harmonised to: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin === From a duplicate https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1614080 : $ for i in 12.04 12.10 13.04 13.10 14.04 14.10 15.04 15.10 16.04; do echo $i; docker run -it --rm ubuntu:$i bash -c "unset PATH; /bin/bash -c 'echo \$PATH'"; done 12.04 /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 12.10 /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 13.04 /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 13.10 /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 14.04 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. 14.10 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. 15.04 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. 15.10 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. 16.04 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. I believe later releases of bash, do too include CWD in the built-in PATH.
2019-04-30 15:02:55 Julian Andres Klode apt (Ubuntu): status New Fix Released
2019-04-30 15:03:31 Julian Andres Klode dpkg (Ubuntu): status New Won't Fix
2019-05-09 12:00:55 Łukasz Zemczak bash (Ubuntu Disco): status New Fix Committed
2019-05-09 12:00:58 Łukasz Zemczak bug added subscriber Ubuntu Stable Release Updates Team
2019-05-09 12:00:59 Łukasz Zemczak bug added subscriber SRU Verification
2019-05-09 12:01:02 Łukasz Zemczak tags verification-needed verification-needed-disco
2019-05-09 20:12:46 Adam Conrad bash (Ubuntu Bionic): status New Fix Committed
2019-05-09 20:12:55 Adam Conrad tags verification-needed verification-needed-disco verification-needed verification-needed-bionic verification-needed-disco
2019-05-09 20:15:32 Adam Conrad bash (Ubuntu Xenial): status New Fix Committed
2019-05-09 20:15:38 Adam Conrad tags verification-needed verification-needed-bionic verification-needed-disco verification-needed verification-needed-bionic verification-needed-disco verification-needed-xenial
2019-05-09 22:24:48 Dimitri John Ledkov tags verification-needed verification-needed-bionic verification-needed-disco verification-needed-xenial verification-done-disco verification-needed verification-needed-bionic verification-needed-xenial
2019-05-09 22:26:46 Dimitri John Ledkov tags verification-done-disco verification-needed verification-needed-bionic verification-needed-xenial verification-done-bionic verification-done-disco verification-needed verification-needed-xenial
2019-05-09 22:28:56 Dimitri John Ledkov tags verification-done-bionic verification-done-disco verification-needed verification-needed-xenial verification-done verification-done-bionic verification-done-disco verification-done-xenial
2019-05-14 01:11:56 Mathew Hodson bash (Debian): importance Unknown Undecided
2019-05-14 01:11:56 Mathew Hodson bash (Debian): remote watch Debian Bug tracker #781367
2019-05-14 01:12:58 Mathew Hodson affects bash (Debian) ubuntu-translations
2019-05-14 01:13:09 Mathew Hodson bug task deleted ubuntu-translations
2019-05-14 01:13:22 Mathew Hodson bug watch removed https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=781367
2019-05-14 01:16:28 Mathew Hodson nominated for series Ubuntu Cosmic
2019-05-14 01:16:28 Mathew Hodson bug task added apt (Ubuntu Cosmic)
2019-05-14 01:16:28 Mathew Hodson bug task added bash (Ubuntu Cosmic)
2019-05-14 01:16:28 Mathew Hodson bug task added dash (Ubuntu Cosmic)
2019-05-14 01:16:28 Mathew Hodson bug task added dpkg (Ubuntu Cosmic)
2019-05-14 01:16:28 Mathew Hodson bug task added pam (Ubuntu Cosmic)
2019-05-14 01:16:28 Mathew Hodson bug task added busybox (Ubuntu Cosmic)
2019-05-14 01:16:28 Mathew Hodson bug task added systemd (Ubuntu Cosmic)
2019-05-14 01:16:38 Mathew Hodson bug task deleted apt (Ubuntu Cosmic)
2019-05-14 01:16:47 Mathew Hodson bug task deleted busybox (Ubuntu Cosmic)
2019-05-14 01:16:55 Mathew Hodson bug task deleted dash (Ubuntu Cosmic)
2019-05-14 01:17:04 Mathew Hodson bug task deleted dpkg (Ubuntu Cosmic)
2019-05-14 01:17:11 Mathew Hodson bug task deleted pam (Ubuntu Cosmic)
2019-05-14 01:17:19 Mathew Hodson bug task deleted systemd (Ubuntu Cosmic)
2019-05-14 01:17:34 Mathew Hodson bash (Ubuntu Cosmic): status New Fix Released
2019-05-16 07:49:40 Launchpad Janitor bash (Ubuntu Disco): status Fix Committed Fix Released
2019-05-16 07:49:48 Łukasz Zemczak removed subscriber Ubuntu Stable Release Updates Team
2019-05-16 09:36:07 Launchpad Janitor bash (Ubuntu Bionic): status Fix Committed Fix Released
2019-05-16 10:09:22 Launchpad Janitor bash (Ubuntu Xenial): status Fix Committed Fix Released
2019-09-17 09:30:18 Marc Deslauriers information type Public Security Public
2021-06-30 22:08:03 Dan Streetman systemd (Ubuntu): status New Invalid
2021-08-31 01:56:08 Joshua Powers removed subscriber Joshua Powers