Re: How To Permanently Add-to a Users PATH Statement in the Bash Shell

2020-07-09 Thread Nate Bargmann
* On 2020 08 Jul 08:38 -0500, Greg Wooledge wrote: > There are lots of choices here. And this is with only the login shell > layer involved -- no X11 or Wayland. Good points and it must be emphasized that ~/.profile or ~/.bash_profile are for *login* shells only. Ordinarily shells started from

Re: How To Permanently Add-to a Users PATH Statement in the Bash Shell

2020-07-08 Thread Greg Wooledge
On Wed, Jul 08, 2020 at 07:53:53AM -0500, Nate Bargmann wrote: > https://noah.meyerhans.us/2020/07/07/setting-environment-variables-for-gnome-session/ > As I read it, where an environment variable should be set depends on the > intended scope of the variable. One comment in response to the blog

Re: How To Permanently Add-to a Users PATH Statement in the Bash Shell

2020-07-08 Thread Nate Bargmann
* On 2020 07 Jul 08:58 -0500, Stephen P. Molnar wrote: > The Subject line is the problem with my Debian Buster platform. Now from > Google I see that there has been a change in the way Debian handles this > problem. > > My user path statement is: > > comp@AbNormal:~$ echo $PATH >

Re: How To Permanently Add-to a Users PATH Statement in the Bash Shell

2020-07-08 Thread Zenaan Harkness
On Wed, Jul 08, 2020 at 07:39:40AM -0400, Greg Wooledge wrote: > On Wed, Jul 08, 2020 at 10:44:39AM +1000, Zenaan Harkness wrote: > > - XFCE acts as, or uses, Dash or something that does not propagate shell > > functions in the parent env > > There are many layers involved. Assuming you're

Re: How To Permanently Add-to a Users PATH Statement in the Bash Shell

2020-07-08 Thread Greg Wooledge
On Wed, Jul 08, 2020 at 10:44:39AM +1000, Zenaan Harkness wrote: > - XFCE acts as, or uses, Dash or something that does not propagate shell > functions in the parent env There are many layers involved. Assuming you're logging in with a "Debian X session", a POSIX shell (sh) is used to read

Re: How To Permanently Add-to a Users PATH Statement in the Bash Shell

2020-07-07 Thread Andrei POPESCU
On Mi, 08 iul 20, 10:44:39, Zenaan Harkness wrote: > > - so try somewhere in the session startup apps - nope, courdn't > figure it out at least For Debian you want ~/.xsessionrc Kind regards, Andrei -- http://wiki.debian.org/FAQsFromDebianUser signature.asc Description: PGP signature

Re: How To Permanently Add-to a Users PATH Statement in the Bash Shell

2020-07-07 Thread Andrei POPESCU
On Mi, 08 iul 20, 09:59:52, Zenaan Harkness wrote: > On Tue, Jul 07, 2020 at 10:29:47AM -0400, Greg Wooledge wrote: > > > > $HOME/bin is placed into the user's default PATH by Debian's ~/.profile > > (the one in /etc/skel/.profile) if it exists at the time the ~/.profile > > is read, if the

Re: How To Permanently Add-to a Users PATH Statement in the Bash Shell

2020-07-07 Thread David Wright
On Tue 07 Jul 2020 at 20:20:11 (-0400), Roberto C. Sánchez wrote: > On Wed, Jul 08, 2020 at 09:59:52AM +1000, Zenaan Harkness wrote: > > On Tue, Jul 07, 2020 at 10:29:47AM -0400, Greg Wooledge wrote: > > > On Tue, Jul 07, 2020 at 03:17:37PM +0100, Jonathan Dowland wrote: > > > > On Tue, Jul 07,

Re: How To Permanently Add-to a Users PATH Statement in the Bash Shell

2020-07-07 Thread Zenaan Harkness
On Tue, Jul 07, 2020 at 10:16:21AM -0400, Greg Wooledge wrote: > Gods, I am so tired of this question and having to repeat my demands > for BASIC information over and over. > > Here are some resources for those of you who refuse to reveal any of > the necessary background information to get

Re: How To Permanently Add-to a Users PATH Statement in the Bash Shell

2020-07-07 Thread Roberto C . Sánchez
On Wed, Jul 08, 2020 at 09:59:52AM +1000, Zenaan Harkness wrote: > On Tue, Jul 07, 2020 at 10:29:47AM -0400, Greg Wooledge wrote: > > On Tue, Jul 07, 2020 at 03:17:37PM +0100, Jonathan Dowland wrote: > > > On Tue, Jul 07, 2020 at 04:14:16PM +0200, Nicolas George wrote: > > > > cd ~/bin > > > > ln

Re: How To Permanently Add-to a Users PATH Statement in the Bash Shell

2020-07-07 Thread Zenaan Harkness
Ahh, asked too soon. Thanks Greg. On Tue, Jul 07, 2020 at 10:16:21AM -0400, Greg Wooledge wrote: > On Tue, Jul 07, 2020 at 09:57:34AM -0400, Stephen P. Molnar wrote: > > The Subject line is the problem > > Yeah. The Subject: line reveals the problem: you believe that PATH is > set primarily by

Re: How To Permanently Add-to a Users PATH Statement in the Bash Shell

2020-07-07 Thread Zenaan Harkness
On Tue, Jul 07, 2020 at 10:29:47AM -0400, Greg Wooledge wrote: > On Tue, Jul 07, 2020 at 03:17:37PM +0100, Jonathan Dowland wrote: > > On Tue, Jul 07, 2020 at 04:14:16PM +0200, Nicolas George wrote: > > > cd ~/bin > > > ln -s ../opt/something/bin/something > > > > Not in the default PATH either.

Re: How To Permanently Add-to a Users PATH Statement in the Bash Shell

2020-07-07 Thread Nicolas George
Jonathan Dowland (12020-07-07): > Not in the default PATH either. No, but probably one of the first things anybody who has non-elementary use will have configured anyway. Regards, -- Nicolas George signature.asc Description: PGP signature

Re: How To Permanently Add-to a Users PATH Statement in the Bash Shell

2020-07-07 Thread Greg Wooledge
On Tue, Jul 07, 2020 at 03:17:37PM +0100, Jonathan Dowland wrote: > On Tue, Jul 07, 2020 at 04:14:16PM +0200, Nicolas George wrote: > > cd ~/bin > > ln -s ../opt/something/bin/something > > Not in the default PATH either. $HOME/bin is placed into the user's default PATH by Debian's ~/.profile

Re: How To Permanently Add-to a Users PATH Statement in the Bash Shell

2020-07-07 Thread Jonathan Dowland
On Tue, Jul 07, 2020 at 04:14:16PM +0200, Nicolas George wrote: cd ~/bin ln -s ../opt/something/bin/something Not in the default PATH either. --  Jonathan Dowland ✎j...@debian.org  https://jmtd.net

Re: How To Permanently Add-to a Users PATH Statement in the Bash Shell

2020-07-07 Thread Greg Wooledge
On Tue, Jul 07, 2020 at 09:57:34AM -0400, Stephen P. Molnar wrote: > The Subject line is the problem Yeah. The Subject: line reveals the problem: you believe that PATH is set primarily by your shell. It's not. It's set primarily by your method of login, and then by your session tools, whether

Re: How To Permanently Add-to a Users PATH Statement in the Bash Shell

2020-07-07 Thread Nicolas George
Roberto C. Sánchez (12020-07-07): > You should add the export command to ~/.bashrc (for it to only be in > effect for that user) Except ~/.bashrc is only sourced for interactive shells, it will not be run when applications are executed by a GUI, for example. (Also, for some reason, the bash

Re: How To Permanently Add-to a Users PATH Statement in the Bash Shell

2020-07-07 Thread Roberto C . Sánchez
On Tue, Jul 07, 2020 at 09:57:34AM -0400, Stephen P. Molnar wrote: > The Subject line is the problem with my Debian Buster platform. Now from > Google I see that there has been a change in the way Debian handles this > problem. > I'm not sure what change you are referring to, but from what you

How To Permanently Add-to a Users PATH Statement in the Bash Shell

2020-07-07 Thread Stephen P. Molnar
The Subject line is the problem with my Debian Buster platform. Now from Google I see that there has been a change in the way Debian handles this problem. My user path statement is: comp@AbNormal:~$ echo $PATH /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games Now I have a number of