[Bug 1705571] Re: Add ~/.local/bin to the path in /etc/skel/.profile
Launchpad Bug Tracker
1705571 at bugs.launchpad.net
Fri Jul 21 18:58:44 UTC 2017
Status changed to 'Confirmed' because the bug affects multiple users.
** Changed in: bash (Ubuntu)
Status: New => Confirmed
--
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/1705571
Title:
Add ~/.local/bin to the path in /etc/skel/.profile
Status in bash package in Ubuntu:
Confirmed
Bug description:
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 at 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
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1705571/+subscriptions
More information about the foundations-bugs
mailing list