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

Bug #1705571 reported by gdahlman
30
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Gnu Bash
Fix Released
Unknown
bash (Ubuntu)
Fix Released
High
Unassigned

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@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

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in bash (Ubuntu):
status: New → Confirmed
Revision history for this message
gdahlman (gdahlman) wrote :

I will claim the upstream and try to get a fix in.

Changed in gnubash:
status: Unknown → New
Changed in gnubash:
status: New → Fix Released
Revision history for this message
Sebastien Bacher (seb128) wrote :

the issue has been fixed in debian/bionic

https://launchpad.net/ubuntu/+source/bash/4.4.18-1ubuntu1

Changed in bash (Ubuntu):
status: Confirmed → Fix Released
importance: Undecided → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.