Re: bash login shell detection broken using default compile options

2023-03-16 Thread Martin Schulte
Hello Tycho! > the login shell detection (leading dash: -bash) is apparently broken - at > least, ~/.bashrc is not sourced. As far as I understand the manual ~/.bashrc is not sourced from a login-shell, see https://www.gnu.org/software/bash/manual/bash.html#Bash-Startup-Files At

Re: bash login shell detection broken using default compile options

2023-03-16 Thread Greg Wooledge
On Thu, Mar 16, 2023 at 05:21:23PM +0100, Tycho Kirchner wrote: > Hi, > when compiling bash with a plain > > mkdir build; cd build; ../configure && make > > the login shell detection (leading dash: -bash) is apparently broken - at > least, ~/.bashrc is not so

bash login shell detection broken using default compile options

2023-03-16 Thread Tycho Kirchner
Hi, when compiling bash with a plain mkdir build; cd build; ../configure && make the login shell detection (leading dash: -bash) is apparently broken - at least, ~/.bashrc is not sourced. This happens in all tested versions, from 4.4 until the latest release 5.2.15. Interestingl

Re: login shell crash on Mac OS X while closing file descriptors

2010-08-25 Thread Rainer Müller
On 2010-08-24 15:59 , Chet Ramey wrote: Well, if they cause bash to crash, I suppose removing that code (or removing the #define) is a good place to start. That code has been there for a very long time. Maybe if you changed it to turn on the FD_CLOEXEC bit instead of closing the fd we could

Re: login shell crash on Mac OS X while closing file descriptors

2010-08-24 Thread Chet Ramey
On 8/22/10 10:13 PM, Rainer Müller wrote: Bash Version: 4.1 Patch Level: 7 Release Status: release I cannot reproduce this very good, but it happens for me now with iTerm.app and '/opt/local/bin/bash -l' as command. A crash report is attached to this message. The important part of

login shell crash on Mac OS X while closing file descriptors

2010-08-23 Thread Rainer Müller
Hi, I am the maintainer of bash in MacPorts, a package management system for Mac OS X. I am currently debugging crashes with bash 4.1.7 when being run as a login shell under certain conditions. The original report was here: http://trac.macports.org/ticket/25693 Configuration Information

login shell crash on Mac OS X while closing file descriptors

2010-08-23 Thread Rainer Müller
Hi, I am the maintainer of bash in MacPorts, a package management system for Mac OS X. I am currently debugging crashes with bash 4.1.7 when being run as a login shell under certain conditions. The original report was here: http://trac.macports.org/ticket/25693 Configuration Information

What files are source in bash login shell?

2009-11-17 Thread Peng Yu
I make my ~/.bash_profile empty. I still see $ echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games I checked /etc/profile and /etc/bash.bashrc. But I don't PATH is set in the two files. I'm wondering from which file PATH is set. BTW, my system is ubuntu.

Re: What files are source in bash login shell?

2009-11-17 Thread Chet Ramey
Peng Yu wrote: I make my ~/.bash_profile empty. I still see $ echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games I checked /etc/profile and /etc/bash.bashrc. But I don't PATH is set in the two files. I'm wondering from which file PATH is set. BTW, my

Re: What files are source in bash login shell?

2009-11-17 Thread Bob Proulx
Peng Yu wrote: I make my ~/.bash_profile empty. I still see $ echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games What is in your ~/.bashrc file? I checked /etc/profile and /etc/bash.bashrc. But I don't PATH is set in the two files. I'm wondering from which

Re: What files are source in bash login shell?

2009-11-17 Thread Peng Yu
On Tue, Nov 17, 2009 at 3:12 PM, Bob Proulx b...@proulx.com wrote: Peng Yu wrote: I make my ~/.bash_profile empty. I still see $ echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games What is in your ~/.bashrc file? I checked /etc/profile and /etc/bash.bashrc.

bash-4.0 and checkjobs w/non-login shell

2009-02-23 Thread Mike Frysinger
i was going through the new features list in NEWS to see what cool things are in here and i saw the new checkjobs option. is it just me or does this cause a non-login bash to crash at exit which leads to an infinite loop / cpu churning ? $ gdb bash (gdb) r vap...@vapier 0:0 bash-4.0 $ shopt

Re: bash-4.0 and checkjobs w/non-login shell

2009-02-23 Thread Chet Ramey
Mike Frysinger wrote: i was going through the new features list in NEWS to see what cool things are in here and i saw the new checkjobs option. is it just me or does this cause a non-login bash to crash at exit which leads to an infinite loop / cpu churning ? I can't reproduce this. Do

Re: bash-4.0 and checkjobs w/non-login shell

2009-02-23 Thread Mike Frysinger
On Monday 23 February 2009 18:05:26 Chet Ramey wrote: Mike Frysinger wrote: i was going through the new features list in NEWS to see what cool things are in here and i saw the new checkjobs option. is it just me or does this cause a non-login bash to crash at exit which leads to an

Re: bash-4.0 and checkjobs w/non-login shell

2009-02-23 Thread Chet Ramey
Mike Frysinger wrote: On Monday 23 February 2009 18:05:26 Chet Ramey wrote: Mike Frysinger wrote: i was going through the new features list in NEWS to see what cool things are in here and i saw the new checkjobs option. is it just me or does this cause a non-login bash to crash at exit which

Re: bash-4.0 and checkjobs w/non-login shell

2009-02-23 Thread Mike Frysinger
On Monday 23 February 2009 23:00:31 Chet Ramey wrote: Mike Frysinger wrote: On Monday 23 February 2009 18:05:26 Chet Ramey wrote: Mike Frysinger wrote: i was going through the new features list in NEWS to see what cool things are in here and i saw the new checkjobs option. is it just me

login shell or not?

2007-02-12 Thread peter360
In an interative shell, what is the easiest way to tell whether it is a login shell or not? Thanks. -- View this message in context: http://www.nabble.com/login-shell-or-not--tf3211932.html#a8919535 Sent from the Gnu - Bash mailing list archive at Nabble.com

Re: login shell or not?

2007-02-12 Thread Chet Ramey
peter360 wrote: In an interative shell, what is the easiest way to tell whether it is a login shell or not? Thanks. In sufficiently modern versions of bash (basically anything newer than bash-2.05), you can test the setting of the `login_shell' shopt variable. The shell sets it automatically