Re: ~/.profile and ~/.bash_profile aren't executed on login

2017-12-10 Thread Chet Ramey
On 12/9/17 6:41 PM, Yuri wrote: > On 12/09/17 15:24, Chet Ramey wrote: >> Of course not: that's not a login shell.  As the documentation says, >> >> "A login shell is one whose first character of argument zero is a -,  or >> one started with the --login option." >> >> The INVOCATION section of the

Re: ~/.profile and ~/.bash_profile aren't executed on login

2017-12-10 Thread Bob Proulx
Yuri wrote: > Bob Proulx wrote: > > How is the user logging in? Are they logging in with 'ssh' over the > > network? Or are they logging in through an "xdm" X Display Manager > > login from a graphical login display? > > User logs in locally through the display manager. Which graphical display

Re: ~/.profile and ~/.bash_profile aren't executed on login

2017-12-10 Thread Yuri
On 12/09/17 14:14, Yuri wrote: None of these files are executed when bash is a user's default shell on FreeBSD. No special options were selected. Despite shell.c saying that they should be executed they just aren't. The bug is that bash doesn't handle login situation when it isn't linked to

Re: ~/.profile and ~/.bash_profile aren't executed on login

2017-12-10 Thread Chet Ramey
On 12/10/17 3:18 PM, Yuri wrote: > On 12/09/17 14:14, Yuri wrote: >> None of these files are executed when bash is a user's default shell on >> FreeBSD. >> No special options were selected. Despite shell.c saying that they should >> be executed they just aren't. > > > The bug is that bash doesn't

Re: some problems with scope of fds in process substitution

2017-12-10 Thread Chet Ramey
On 12/4/17 10:19 AM, Stephane Chazelas wrote: > One major differnce with ksh93 though is that it won't work with > > cmd | tee >(cmd2) > > unless you enable lastpipe. Of course not: that's the whole point of lastpipe, and the major difference there is broader than $! and process substitutions.

Re: ~/.profile and ~/.bash_profile aren't executed on login

2017-12-10 Thread Yuri
On 12/10/17 13:51, Chet Ramey wrote: You have not described a bug, since you have not demonstrated that bash is behaving other than how it is documented, nor have you provided answers to any of the questions you've been asked. You haven't even determined whether or not bash is being invoked as a

Re: ~/.profile and ~/.bash_profile aren't executed on login

2017-12-10 Thread Geir Hauge
On Sun, Dec 10, 2017 at 07:22:36PM -0800, Yuri wrote: > It only calls ~/.profile when it is named 'sh'. In posix mode, bash only looks for ~/.profile, but when you run it in non-posix mode, it will look for ~/.bash_profile and ~/.bash_login first. You probably have a ~/.bash_profile in addition to