Public bug reported:

This appears to be a regression of
https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1588562

In 16.04, per the above bug it is set with bash 4.3

##### Working in 16.04

$ dpkg -l bash | cat
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version         Architecture Description
+++-==============-===============-============-=================================
ii  bash           4.3-14ubuntu1.2 amd64        GNU Bourne Again SHell

$ tail -n 2 /etc/skel/profile
# set PATH so it includes user's private bin directories
PATH="$HOME/bin:$HOME/.local/bin:$PATH"

##### Regression in 17.04

$ dpkg -l bash | cat
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version        Architecture Description
+++-==============-==============-============-=================================
ii  bash           4.4-2ubuntu1.1 amd64        GNU Bourne Again SHell

$ tail -n 4 /etc/skel/.profile
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
    PATH="$HOME/bin:$PATH"
fi

##### Regression in 17.10

$ dpkg -l bash | cat
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-=================================
ii  bash           4.4-5ubuntu1 amd64        GNU Bourne Again SHell

$  tail -n 4 /etc/skel/.profile
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
    PATH="$HOME/bin:$PATH"
fi

foo@76ee9ed7d4f5:~$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games


The issue could be fixed with a diff on /etc/skel/.profile like:

##### Patch Diff

diff --git a/.profile b/.profile
index c9db459..da82446 100644
--- a/.profile
+++ b/.profile
@@ -20,3 +20,8 @@ fi
 if [ -d "$HOME/bin" ] ; then
     PATH="$HOME/bin:$PATH"
 fi
+
+# set PATH so it includes user's private python-pip bin if it exists
+if [ -d "$HOME/.local/bin" ] ; then
+    PATH="$HOME/.local/bin:$PATH"
+fi


#### LSB info

$ lsb_release -rd
Description:    Ubuntu 17.04
Release:        17.04

$ lsb_release -rd
Description:    Ubuntu Artful Aardvark (development branch)
Release:        17.10

** Affects: bash (Ubuntu)
     Importance: Undecided
         Status: New

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

Title:
  Add ~/.local/bin to the path in  /etc/skel/.profile

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1705571/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to