[Bug 1614080] Re: PATH contains dot when PATH is unset before running bash

Philippe Vaucher philippe.vaucher at gmail.com
Mon Sep 5 12:56:01 UTC 2016


For information this bug does not happen on Fedora/CentOS

philippe at pv-desktop:~$ docker run -it --rm fedora:latest bash -c "unset PATH; /bin/bash -c 'echo \$PATH'"
/usr/local/bin:/usr/bin


** Bug watch added: Debian Bug tracker #781367
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=781367

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to bash in Ubuntu.
https://bugs.launchpad.net/bugs/1614080

Title:
  PATH contains dot when PATH is unset before running bash

Status in bash package in Ubuntu:
  New

Bug description:
  On ubuntu 16.04 (but also 14.04), running bash with PATH unset always
  adds '.' to PATH:

  philippe at pv-desktop:~$ echo $PATH
  /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
  philippe at pv-desktop:~$ unset PATH
  philippe at pv-desktop:~$ /bin/bash
  philippe at 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



More information about the foundations-bugs mailing list