Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #165810

Re: User's bin path not recognised in login script

From David Christensen <dpchrist@holgerdanske.com>
Newsgroups linux.debian.user
Subject Re: User's bin path not recognised in login script
Date 2016-03-22 03:40 +0100
Message-ID <rfkoG-6ju-5@gated-at.bofh.it> (permalink)
References <rfcAO-Zv-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 03/21/2016 11:03 AM, Russell Gadd wrote:
> The bash login script I have added in to my startup programs does not
> recognise /home/user/bin as part of the path, whereas it used to when I
> was running Linux Mint (I'm a recent refugee). I've got
> PATH="$HOME/bin:$PATH" in ~/.bashrc and also in ~/.profile, together
> with a ~/.bash_profile which sources ~/.profile. I've no idea whether
> all these are necessary - they do work to search my bin in a script run
> in the Mate terminal but not in the login script. It's not a big deal as
> I can prepend the absolute path in the login script, although I assume
> this means also doing it in sourced scripts within the login script, so
> I'd like to know if there's a clean way to set this up.


Did you remember the 'export' in .profile?

     export PATH=$PATH:$HOME/bin


It might help to add echo's in the various scripts to check the order in 
which they run -- e.g. verify that .bash_profile runs before your bash 
login script, so that PATH includes $HOME/bin.


David

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

User's bin path not recognised in login script Russell Gadd <russ.mail.lists@gmail.com> - 2016-03-21 19:20 +0100
  Re: User's bin path not recognised in login script Sven Arvidsson <sa@whiz.se> - 2016-03-21 19:30 +0100
  Re: User's bin path not recognised in login script David Christensen <dpchrist@holgerdanske.com> - 2016-03-22 03:40 +0100
    Re: User's bin path not recognised in login script Russell Gadd <russ.mail.lists@gmail.com> - 2016-03-22 19:40 +0100
      Re: User's bin path not recognised in login script The Wanderer <wanderer@fastmail.fm> - 2016-03-22 20:00 +0100
        Re: User's bin path not recognised in login script Russell Gadd <russ.mail.lists@gmail.com> - 2016-03-22 23:50 +0100
          Re: User's bin path not recognised in login script The Wanderer <wanderer@fastmail.fm> - 2016-03-23 03:50 +0100
          Re: User's bin path not recognised in login script David Wright <deblis@lionunicorn.co.uk> - 2016-03-24 01:30 +0100
            Re: User's bin path not recognised in login script The Wanderer <wanderer@fastmail.fm> - 2016-03-24 01:40 +0100
            Re: User's bin path not recognised in login script Russell Gadd <russ.mail.lists@gmail.com> - 2016-03-24 09:30 +0100
      Re: User's bin path not recognised in login script Seeker <seeker5528@comcast.net> - 2016-03-22 21:20 +0100
        Re: User's bin path not recognised in login script Russell Gadd <russ.mail.lists@gmail.com> - 2016-03-22 23:50 +0100
      Re: User's bin path not recognised in login script Seeker <seeker5528@comcast.net> - 2016-03-22 22:10 +0100
      Re: User's bin path not recognised in login script Seeker <seeker5528@comcast.net> - 2016-03-22 22:30 +0100
      Re: User's bin path not recognised in login script seeker5528@comcast.net - 2016-03-22 22:50 +0100
        Re: User's bin path not recognised in login script Lisi Reisz <lisi.reisz@gmail.com> - 2016-03-23 00:00 +0100

csiph-web