Re: startxwin started bash does not read .bashrc or .bash_profile

2013-03-01 Thread Andrey Repin
Greetings, Chris J. Breisch! > On 3/1/2013 10:49 AM, Kevin Layer wrote: >> >> Don't have cron running. I start it as me, the logged in user, from a >> mouse click or running "startxwin" in a mintty. Behaves the same >> either way. > Well, I am unable to duplicate this no matter what I do. I hav

Re: startxwin started bash does not read .bashrc or .bash_profile

2013-03-01 Thread Chris J. Breisch
On 3/1/2013 10:49 AM, Kevin Layer wrote: Don't have cron running. I start it as me, the logged in user, from a mouse click or running "startxwin" in a mintty. Behaves the same either way. Well, I am unable to duplicate this no matter what I do. I have even launched a dash shell directly fro

Re: startxwin started bash does not read .bashrc or .bash_profile

2013-03-01 Thread Kevin Layer
Earnie Boyd wrote: >> >>> Then what is the value of $SHELL? >> > >> > /bin/bash >> >> What user actually starts the session? I've seen this type of thing >> when the cron daemon starts a session. The profile files are never >> read. Don't have cron running. I start it as me, the logged in use

Re: startxwin started bash does not read .bashrc or .bash_profile

2013-03-01 Thread Earnie Boyd
On Thu, Feb 28, 2013 at 9:28 AM, Kevin Layer wrote: > Earnie Boyd wrote: > >>> On Wed, Feb 27, 2013 at 5:16 PM, Kevin Layer wrote: >>> > >>> > Did you read the original report and all the replies in the chain? >>> > >>> >...it requires my .bashrc to be sourced (.bash_profile merely sources >>>

Re: startxwin started bash does not read .bashrc or .bash_profile

2013-02-28 Thread Kevin Layer
Earnie Boyd wrote: >> On Wed, Feb 27, 2013 at 5:16 PM, Kevin Layer wrote: >> > >> > Did you read the original report and all the replies in the chain? >> > >> >...it requires my .bashrc to be sourced (.bash_profile merely sources >> >.bashrc). >> >> Then what is the value of $SHELL? /bin

Re: startxwin started bash does not read .bashrc or .bash_profile

2013-02-28 Thread Earnie Boyd
On Wed, Feb 27, 2013 at 5:16 PM, Kevin Layer wrote: > > Did you read the original report and all the replies in the chain? > >...it requires my .bashrc to be sourced (.bash_profile merely sources >.bashrc). Then what is the value of $SHELL? -- Earnie -- https://sites.google.com/site/earn

Re: startxwin started bash does not read .bashrc or .bash_profile

2013-02-27 Thread Kevin Layer
Also, strace'ing startxwin was not fruitful--the program hangs without putting up any windows or doing much work at all. I'm open to more suggestions... -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.c

Re: startxwin started bash does not read .bashrc or .bash_profile

2013-02-27 Thread Kevin Layer
Btw, this happens on my home and work systems. Both Windows 7 Ultimate x64. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple

Re: startxwin started bash does not read .bashrc or .bash_profile

2013-02-27 Thread Kevin Layer
K Stahl wrote: >> I normally start a terminal in my .xinitrc file (Place it in your home >> directory): >> >> Example: >> >> #!/usr/bin/sh >> urxvt -e bash -l & wmpid=$! >> wait ${wmpid} Turns out, I'm mistaken, but I found out something interesting. I had created a .xinitrc with a single "xte

Re: startxwin started bash does not read .bashrc or .bash_profile

2013-02-27 Thread Kevin Layer
Earnie Boyd wrote: >> On Wed, Feb 27, 2013 at 3:15 PM, Kevin Layer wrote: >> > That was one of the experiments I did, and I saw no evidence that any >> > commands were executed. I even passed it as the argument to the >> > invocation. >> > >> > As for the assumption, I understand that an error co

Re: startxwin started bash does not read .bashrc or .bash_profile

2013-02-27 Thread Earnie Boyd
On Wed, Feb 27, 2013 at 3:15 PM, Kevin Layer wrote: > That was one of the experiments I did, and I saw no evidence that any > commands were executed. I even passed it as the argument to the > invocation. > > As for the assumption, I understand that an error could have > short-circuited the process

Re: startxwin started bash does not read .bashrc or .bash_profile

2013-02-27 Thread Kevin Layer
Andrey Repin wrote: >> Greetings, Kevin Layer! >> >> > I know ~/.bashrc hasn't been read because my prompt is not changed and >> > my aliases are not there. >> >> That's just assumption. Not the first-hand knowledge. It may be true, or >> not... Best way to know is to place >> set -x >> around t

Re: startxwin started bash does not read .bashrc or .bash_profile

2013-02-27 Thread Christopher Faylor
On Wed, Feb 27, 2013 at 11:37:52PM +0400, Andrey Repin wrote: >Greetings, Kevin Layer! > >> I know ~/.bashrc hasn't been read because my prompt is not changed and >> my aliases are not there. > >That's just assumption. Not the first-hand knowledge. It may be true, or >not... Best way to know is to

Re: startxwin started bash does not read .bashrc or .bash_profile

2013-02-27 Thread Andrey Repin
Greetings, Kevin Layer! > I know ~/.bashrc hasn't been read because my prompt is not changed and > my aliases are not there. That's just assumption. Not the first-hand knowledge. It may be true, or not... Best way to know is to place set -x around the start of the file and observe the results. >

Re: startxwin started bash does not read .bashrc or .bash_profile

2013-02-27 Thread Kevin Layer
K Stahl wrote: >> I normally start a terminal in my .xinitrc file (Place it in your home >> directory): >> >> Example: >> >> #!/usr/bin/sh >> urxvt -e bash -l & wmpid=$! >> wait ${wmpid} Bash started via .xinitrc *does* read my .bashrc. Interesting! I'll play more with this tonight to see if

Re: startxwin started bash does not read .bashrc or .bash_profile

2013-02-27 Thread Kevin Layer
Jon TURNEY wrote: >> On 27/02/2013 00:08, Kevin Layer wrote: >> > If I put this into .startxwinrc: >> > >> > mintty /usr/bin/bash.exe --login -i >> > >> > the resulting shell does not read .bash_profile. If I put >> > >> > mintty /usr/bin/bash.exe -i >> > >> > it doesn't read .bashrc. >>

Re: startxwin started bash does not read .bashrc or .bash_profile

2013-02-27 Thread Jon TURNEY
On 27/02/2013 00:08, Kevin Layer wrote: > If I put this into .startxwinrc: > > mintty /usr/bin/bash.exe --login -i > > the resulting shell does not read .bash_profile. If I put > > mintty /usr/bin/bash.exe -i > > it doesn't read .bashrc. I've tried to reproduce this, but it seem to work

Re: startxwin started bash does not read .bashrc or .bash_profile

2013-02-27 Thread K Stahl
I normally start a terminal in my .xinitrc file (Place it in your home directory): Example: #!/usr/bin/sh urxvt -e bash -l & wmpid=$! wait ${wmpid} Using this scheme, I haven't had the issues the original poster has described. -- Problem reports: http://cygwin.com/problems.html FAQ:

Re: startxwin started bash does not read .bashrc or .bash_profile

2013-02-27 Thread Kevin Layer
Eliot, thanks for the reply. The passwd/group was an interesting thought. Unfortunately: @oob2$ mkpasswd -l > passwd.new @oob2$ diff passwd passwd.new @oob2$ mkgroup -l > group.new @oob2$ diff group group.new @oob2$ It's not just mintty. When I run xterm, it doesn't source any of my init fil

Re: startxwin started bash does not read .bashrc or .bash_profile

2013-02-27 Thread Eliot Moss
Dear Kevin (et al.) -- I use StartXWin all the time, and start bash from an xterm, and the startup reading of .bash_profile, etc., proceeds as documented. Thinking it might be something about mintty, I tested that as well, with --login and with just -i, and it all works as expected, reading the p

Re: startxwin started bash does not read .bashrc or .bash_profile

2013-02-27 Thread Kevin Layer
Robert Pendell wrote: >> Commonly .bash_profile does source in .bashrc so that it gets executed too. Exactly what mine does. I just want to be clear: I have not been able to get bash to source *anything* when started from startxwin.exe. I've done hours of experimentation and done many variation

Re: startxwin started bash does not read .bashrc or .bash_profile

2013-02-27 Thread Eliot Moss
On 2/27/2013 10:36 AM, Robert Pendell wrote: Dear Robert -- I think the original poster's concern was not the general working of bash with .bash_profile and .bashrc, but the specific behavior when bash is started by an instance of mintty which itself is started by the X windows server in .startxw

Re: startxwin started bash does not read .bashrc or .bash_profile

2013-02-27 Thread Robert Pendell
On Tue, Feb 26, 2013 at 10:20 PM, Kevin Layer <> wrote: > Arthur Tu wrote: > >>> On 2/27/2013 8:08 AM, Kevin Layer wrote: >>> > If I put this into .startxwinrc: >>> > >>> >mintty /usr/bin/bash.exe --login -i >>> > >>> > the resulting shell does not read .bash_profile. If I put >>> > >>> >m

Re: startxwin started bash does not read .bashrc or .bash_profile

2013-02-26 Thread Kevin Layer
Arthur Tu wrote: >> On 2/27/2013 8:08 AM, Kevin Layer wrote: >> > If I put this into .startxwinrc: >> > >> >mintty /usr/bin/bash.exe --login -i >> > >> > the resulting shell does not read .bash_profile. If I put >> > >> >mintty /usr/bin/bash.exe -i >> > >> > it doesn't read .bashrc. >> >

Re: startxwin started bash does not read .bashrc or .bash_profile

2013-02-26 Thread Arthur Tu
On 2/27/2013 8:08 AM, Kevin Layer wrote: If I put this into .startxwinrc: mintty /usr/bin/bash.exe --login -i the resulting shell does not read .bash_profile. If I put mintty /usr/bin/bash.exe -i it doesn't read .bashrc. I've been beating my head against this wall for hours, over a f

startxwin started bash does not read .bashrc or .bash_profile

2013-02-26 Thread Kevin Layer
If I put this into .startxwinrc: mintty /usr/bin/bash.exe --login -i the resulting shell does not read .bash_profile. If I put mintty /usr/bin/bash.exe -i it doesn't read .bashrc. I've been beating my head against this wall for hours, over a few days. I've googled my ass off, but I can