group.of.nepali.translators team mailing list archive
-
group.of.nepali.translators team
-
Mailing list archive
-
Message #30283
[Bug 1614080] Re: PATH contains dot when PATH is unset before running bash
This bug was fixed in the package bash - 4.4.18-2ubuntu1.1
---------------
bash (4.4.18-2ubuntu1.1) bionic; urgency=medium
* Resurrect "Set the default path to comply with Debian policy" in
deb-bash-config.diff which went missing since 4.2+dfsg-1 or so.
LP: #1792004 LP: #1614080 Closes: #781367
* Add autopkgtest for the built-in path.
-- Dimitri John Ledkov <xnox@xxxxxxxxxx> Fri, 03 May 2019 14:50:32
+0100
** Changed in: bash (Ubuntu Bionic)
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1614080
Title:
PATH contains dot when PATH is unset before running bash
Status in bash package in Ubuntu:
Fix Released
Status in bash source package in Precise:
Fix Released
Status in bash source package in Trusty:
Won't Fix
Status in bash source package in Xenial:
Fix Committed
Status in bash source package in Bionic:
Fix Released
Status in bash source package in Cosmic:
Fix Released
Status in bash source package in Disco:
Fix Released
Status in bash source package in Eoan:
Fix Released
Status in bash package in Debian:
New
Bug description:
[Impact]
* The fallback path built into bash contains '.' which leads to
unexpected addition of the current working directory. It should not be
there, just like it isnt' in pre-precise and cosmic+.
[Test Case]
* $ env -u PATH /bin/bash -c 'echo $PATH'
Should not have '.' as any component. Nor should there be any empty
components, i.e. '::'.
[Regression Potential]
* Normally PATH is always set by either init, systemd, or any other
hypervisor. Thus this only affects executions under bash, when it was
started without any environment - e.g. booting with 'init=/bin/bash'.
[Other Info]
* Original bug report.
On ubuntu 16.04 (but also 14.04), running bash with PATH unset always
adds '.' to PATH:
philippe@pv-desktop:~$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
philippe@pv-desktop:~$ unset PATH
philippe@pv-desktop:~$ /bin/bash
philippe@pv-desktop:~$ echo $PATH
/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:.
Even when testing in a virtual machine / docker, and erasing
/root/.profile /root/.bashrc /etc/profile /etc/bash.bashrc the problem
still happens.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1614080/+subscriptions