Re: Nano fails to open file "~/.bashrc".

2023-03-04 Thread Andrey Repin via Cygwin
Greetings, Kirill Frolov! > $ which nano > /cygdrive/c/Program Files/Git/usr/bin/nano That explains it. Cygwin does not install nano by default. Fire up your setup.exe and install it, that will fix your issue. As for the future, I suggest to patch your ~/.profile and exclude unnecessary/conflicti

Re: Nano fails to open file "~/.bashrc".

2023-03-03 Thread Eliot Moss via Cygwin
On 3/3/2023 10:37 AM, Kirill Frolov via Cygwin wrote: On 03.03.2023 18:31, Andrey Repin wrote: Greetings, Kirill Frolov! Please avoid top-posting in this list. On 03.03.2023 15:47, Andrey Repin wrote: Greetings, Kirill Frolov! When i run nano ~/.bashrc nano opens with   [ Directory

Re: Nano fails to open file "~/.bashrc".

2023-03-03 Thread Kirill Frolov via Cygwin
On 03.03.2023 18:31, Andrey Repin wrote: Greetings, Kirill Frolov! Please avoid top-posting in this list. On 03.03.2023 15:47, Andrey Repin wrote: Greetings, Kirill Frolov! When i run nano ~/.bashrc nano opens with   [ Directory '/home/frolo' does not exist ] error. Do you r

Re: Nano fails to open file "~/.bashrc".

2023-03-03 Thread Andrey Repin via Cygwin
Greetings, Kirill Frolov! Please avoid top-posting in this list. > On 03.03.2023 15:47, Andrey Repin wrote: >> Greetings, Kirill Frolov! >> >>> When i run nano ~/.bashrc nano opens with   [ Directory '/home/frolo' does >>> not exist ] error. >>

Re: Nano fails to open file "~/.bashrc".

2023-03-03 Thread Kirill Frolov via Cygwin
g-nsswitch # # Defaults: # passwd:   files db # group:    files db # db_enum:  cache builtin # db_home:  /home/%U # db_shell: /bin/bash # db_gecos: On 03.03.2023 15:47, Andrey Repin wrote: Greetings, Kirill Frolov! When i run nano ~/.bashrc nano opens with   [ Directory '/home/frolo' does not

Re: Nano fails to open file "~/.bashrc".

2023-03-03 Thread Andrey Repin via Cygwin
Greetings, Kirill Frolov! > When i run nano ~/.bashrc nano opens with   [ Directory '/home/frolo' does > not exist ] error. Do you run it from bash prompt or from CMD prompt? > The file opens with cat ~/.bashrc Can you please show us the output of getent passwd "

Nano fails to open file "~/.bashrc".

2023-03-03 Thread Kirill Frolov via Cygwin
When i run nano ~/.bashrc nano opens with   [ Directory '/home/frolo' does not exist ] error. The file opens with cat ~/.bashrc Cygwin Configuration Diagnostics Current System Time: Fri Mar 03 12:33:37 2023 Windows 11 Professional Ver 10.0 Build 22621 Path: F:\cygwin64\usr

Re: minor error in skel/.bashrc

2022-03-08 Thread Andrey Repin
Greetings, Adam Dinwoodie! > On Sat, Mar 05, 2022 at 09:26:06AM +0300, lvm wrote: >> The identical /etc/skel/.bashrc and /etc/defaults/etc/skel/.bashrc contain >> the same line >> >> # export HISTCONTROL=$HISTCONTROL${HISTCONTROL+,}ignoredups Not a nitpick or

Re: minor error in skel/.bashrc

2022-03-05 Thread Adam Dinwoodie
On Sat, Mar 05, 2022 at 09:26:06AM +0300, lvm wrote: > The identical /etc/skel/.bashrc and /etc/defaults/etc/skel/.bashrc contain > the same line > > # export HISTCONTROL=$HISTCONTROL${HISTCONTROL+,}ignoredups > > But HISTCONTROL values should be colon separated, not com

minor error in skel/.bashrc

2022-03-04 Thread lvm
The identical /etc/skel/.bashrc and /etc/defaults/etc/skel/.bashrc contain the same line # export HISTCONTROL=$HISTCONTROL${HISTCONTROL+,}ignoredups But HISTCONTROL values should be colon separated, not comma separated. This line is commented out, but if someone like me tries to use it without

Re: Bash monitor mode remains enabled if disabled in .bashrc

2017-08-31 Thread cyg Simple
Keep responses to the list and not the individual responders. Forwarded on your behalf. On 8/31/2017 10:32 AM, Michel LaBarre wrote: > Thanks for the reply. > > Quick answer (repeated interleaved below): > - my .bash_profile does indeed source .bashrc > - I added an echo t

Re: Bash monitor mode remains enabled if disabled in .bashrc

2017-08-31 Thread cyg Simple
On 8/30/2017 7:26 PM, Michel LaBarre wrote: > Playing with set -m/+m and shopt -s lastpipe, in an interactive bash shell, > I came across a situation > which is minor unless it has broader implications for others that I do not > know about. > > Specifically if "set +m&

Bash monitor mode remains enabled if disabled in .bashrc

2017-08-30 Thread Michel LaBarre
Playing with set -m/+m and shopt -s lastpipe, in an interactive bash shell, I came across a situation which is minor unless it has broader implications for others that I do not know about. Specifically if "set +m" is present in .bashrc, it looks like job control (monitor mode) is

Re: .bashrc not sourced

2016-03-29 Thread Ken Brown
On 3/29/2016 11:04 AM, Gary Furash wrote: When I log on w/ Mintty or Bash (via the bat file) it takes me to my home directory but doesn't automatically source .bashrc. It's only in non-login shells that .bashrc gets sourced by default. If you want it to be sourced in login shells,

.bashrc not sourced

2016-03-29 Thread Gary Furash
OS: Windows 7, Windows 10 Cygwin: latest, x64 When I log on w/ Mintty or Bash (via the bat file) it takes me to my home directory but doesn't automatically source .bashrc. If I hand type "source .bashrc" it then sources it. -- gary furash | furashg...@gmail.com, 520-907-2470 --

Re: Why not generate the .bashrc automatically under home diretory

2015-08-25 Thread Andrey Repin
o stomp your profile directory with strict POSIX permissions. Not every application is ready to accept them, you may even lose the ability to open documents through associations. > After refresh installing and change the fstab above, then startup mintty. > But, I didn't see .bashrc/.

Why not generate the .bashrc automatically under home diretory

2015-08-25 Thread kuaf
,posix=0,nouser After refresh installing and change the fstab above, then startup mintty. But, I didn't see .bashrc/.profile/.inputrc/.bash_profile was generated automatically under home directory. I mean the `/etc/skel/*` files would be copied to home direcotry. Thanks [1]: http://cygwin.com/

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

2013-03-01 Thread Andrey Repin
able to duplicate this no matter what I do. I have even > launched a dash shell directly from cmd.exe and done a startxwin from that. > I do have the following additions at the beginning of my .bashrc and > .bash_profile > .bashrc: > [[ "$-" != *i* ]] && return &g

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

2013-03-01 Thread Chris J. Breisch
shell directly from cmd.exe and done a startxwin from that. I do have the following additions at the beginning of my .bashrc and .bash_profile .bashrc: [[ "$-" != *i* ]] && return export BASHRC=${HOME}/.bashrc if [ "${BASH_PROFILE-unset}" = "unset" ]; th

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

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 >> >

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.

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
hing interesting. I had created a .xinitrc with a single "xterm" call in it, but I was still running startxwin.exe instead of xinit.exe, so because I had renamed .startxwinrc to .startxwinrc.disabled, I was running with some default init file for startxwin.exe. The xterm that

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

2013-02-27 Thread Kevin Layer
; As for the assumption, I understand that an error could have >> > short-circuited the processing of my init file, but in the bash's that >> > haven't read it, >> > >> > . .bashrc >> > >> > produces no errors *and* has my aliases a

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

2013-02-27 Thread Earnie Boyd
hort-circuited the processing of my init file, but in the bash's that > haven't read it, > >. .bashrc > > produces no errors *and* has my aliases and new prompt. $HOME/.bashrc isn't always read. It depends on how bash is executed. If this is a --login you need $HOME

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 >&g

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,

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 obs

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. Inte

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 >> > >>

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 t

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
e any of my init files, either. This is not a new issue. I only started to care about it recently because I want to use ssh-agent/ssh-add in my .bashrc/.bash_profile. As for PATH, it's set so that it can find the programs, so I'm pretty sure that's neither here nor there. More ideas

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 an

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 serv

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

2013-02-27 Thread Robert Pendell
> >>> > 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

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 >> > >>

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 hou

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

Re: Debug the skipping of .bashrc when bang out from vim PC version

2012-08-27 Thread Andy
ether I use an administrator or non-administrator account. > > 1. Can anyone suggest a cause and/or solution to the inability of > the non-administrator to shell out? > > 2. What about why the -v option doesn't seem to work when included > in vim's shell option? > &

Re: Debug the skipping of .bashrc when bang out from vim PC version

2012-08-26 Thread Andy
I goofed in that last post. Echoing the results of shelling out to register a is done via: :redir @a !!ls :w !cat :redir END -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Uns

Debug the skipping of .bashrc when bang out from vim PC version

2012-08-26 Thread Andy
It is often more covenient to use the Windows install of gvim than to fire up Cygwin's X-windows to run the Cygwin version of gvim. In order to be able to bang out to run bash commands, I have this in my vimrc: shell=c:\cygwin\bin\bash.exe\ -i This allows me to do things like !!ls or

Re: Bashrc distinguish between mintty and x-windows xterm

2012-06-24 Thread Andy
Andy gmail.com> writes: > For the record, this in .bashrc seems to work well in xterm's white > background > and mintty's black background. > > case "$(< /proc/$PPID/exename)" in >*/xterm) function setPS1() { > PS1="\[

Re: A little annoiance after modifying my .bashrc file to add an alias to edit files

2012-06-20 Thread Larry Hall (Cygwin)
On 6/20/2012 2:13 PM, gialloporpora wrote: Hi all, I have found this good tip: http://www.mikaelkrok.net/component/content/article/44-java/131-use-cygwin-with-your-best-external-windows-text-editor to use my Windows text editor to modify files. I have added this line to my .bashrc file: alias

Re: Bashrc distinguish between mintty and x-windows xterm

2012-06-19 Thread Andy
term) echo "This is an xterm" ;; |> */mintty) echo "This is a mintty" ;; |> esac | |Barry, Ken, | |Thanks for your valuable scripting examples. It sent me scurrying back to the |man page to figure out case/esac and command substitution. It's also a good |reminder of

Re: cygwin won't create .bashrc / .bash_profile after installing

2012-05-30 Thread marco atzeri
p is complete, I run "cygwin.bat" but cygwin does not create the file. bashrc and. bash_profile. as are his or her home directory. not in C: \ cygwin \ Home \ profile but instead in C: \ Documents And Settings \ User I've re-install up to 3 times but do not also fix Can you help me? mod

cygwin won't create .bashrc / .bash_profile after installing

2012-05-30 Thread bowo keren
cygwin version 2.761 have a problem when installing cygwin, I installed it with a clean when setup is complete, I run "cygwin.bat" but cygwin does not create the file. bashrc and. bash_profile. as are his or her home directory. not in C: \ cygwin \ Home \ profile but instead in C: \

Re: Bashrc distinguish between mintty and x-windows xterm

2012-05-25 Thread Andy
Ken Jackson jackson.io> writes: > Fri, May 25, 2012 at 09:32AM -0400 Buchbinder, Barry > (NIH/NIAID) [E] wrote: >> Andrew Hancock sent the following at Friday, May 25, 2012 12:42 AM >>>Barry, it works flawlessly. Thanks immensely! >> >> But I forgot to export ThisTerm, otherwise it is always

Re: Bashrc distinguish between mintty and x-windows xterm

2012-05-25 Thread Ken Jackson
Fri, May 25, 2012 at 09:32AM -0400 Buchbinder, Barry (NIH/NIAID) [E] wrote: > Andrew Hancock sent the following at Friday, May 25, 2012 12:42 AM > >Barry, it works flawlessly. Thanks immensely! > > But I forgot to export ThisTerm, otherwise it is always unset when > a subshell is launched. A

RE: Bashrc distinguish between mintty and x-windows xterm

2012-05-25 Thread Buchbinder, Barry (NIH/NIAID) [E]
Andrew Hancock sent the following at Friday, May 25, 2012 12:42 AM >Barry, it works flawlessly. Thanks immensely! You are very welcome. But I forgot to export ThisTerm, otherwise it is always unset when a subshell is launched. # Only set ThisTerm if not set. if [ -z "${ThisTerm}" ] then if [ $

Re: Bashrc distinguish between mintty and x-windows xterm

2012-05-24 Thread Andrew Hancock
Buchbinder, Barry (NIH/NIAID) [E] niaid.nih.gov> writes: > > # Only set ThisTerm if not set. > if [ -z "${ThisTerm}" ] > then >   if [ ${PPID} = 1 ] >   then > ThisTerm=cmd >   else > if [ "$(cat /proc/${PPID}/exename)" = '/usr/bin/mintty' ] > then >   ThisTerm=mintty > else > 

RE: Bashrc distinguish between mintty and x-windows xterm

2012-05-21 Thread Buchbinder, Barry (NIH/NIAID) [E]
Andy sent the following at Monday, May 21, 2012 8:39 PM >My bashrc sets the color of the prompt depending on $TERM. My x-windows >xterm has a white background and the cygwin default terminal, which has >a black background, use to not have $TERM=xterm. I could distinguish >between

Bashrc distinguish between mintty and x-windows xterm

2012-05-21 Thread Andy
My bashrc sets the color of the prompt depending on $TERM. My x-windows xterm has a white background and the cygwin default terminal, which has a black background, use to not have $TERM=xterm. I could distinguish between them in the bashrc script, and set the prompt colours accordingly. Now

Re: .bashrc and.bash_profile missing

2011-06-29 Thread Weiqi Gao
find the file but it jerked back > to the usual prompt so I was able to look inside my home/user/ directory. > After using ls -a it showed that this directory was completely empty, no > .bashrc, no .bash_profile. I'm fairly new to this so I don't know why this > is happe

.bashrc and.bash_profile missing

2011-06-29 Thread Ballaw
dn't find the file but it jerked back to the usual prompt so I was able to look inside my home/user/ directory. After using ls -a it showed that this directory was completely empty, no .bashrc, no .bash_profile. I'm fairly new to this so I don't know why this is happening? ANy help wo

Re: -a $HOME/.bashrc and -a ~/.bashrc produce different results

2011-05-20 Thread Csaba Raduly
On Thu, May 19, 2011 at 11:06 PM, Eric Blake wrote: > "$HOME" expands $HOME, but "~/.bashrc" does _not_ expand ~.  For > tilde-expansion to occur, it must be unquoted. Not only that, it has to be the first character: 3.5.2 Tilde Expansion

Re: -a $HOME/.bashrc and -a ~/.bashrc produce different results

2011-05-19 Thread Eric Blake
I can. And it's not cygwin-specific. > for i in "$HOME/.bashrc" "~/.bashrc" ; do "$HOME" expands $HOME, but "~/.bashrc" does _not_ expand ~. For tilde-expansion to occur, it must be unquoted. >if [ -a "$i" ]; then Use 

Re: -a $HOME/.bashrc and -a ~/.bashrc produce different results

2011-05-19 Thread Illia Bobyr
On 5/19/2011 3:54 PM, Lee Maschmeyer wrote: > > Hi all, > > For most uses, $HOME and ~ produce identical results. For example, ls > $HOME > or ls ~ are the same. But the following script fails: > > #!/bin/bash > > for i in "$HOME/.bashrc" "~/.bashrc&q

Re: Order of .profile & .bashrc

2010-12-16 Thread Larry Hall (Cygwin)
option may be used when the shell is started to inhibit this behavior. From your ~/.bash_profile file: # source the system wide bashrc if it exists if [ -e /etc/bash.bashrc ] ; then source /etc/bash.bashrc fi Files under /etc/skel are templates that get copied into user home directories

RE: Order of .profile & .bashrc

2010-12-16 Thread jwzumwalt
login shell. /etc/X11/xinit/xinitrc – executed when xwindows start, startup programs -- View this message in context: http://old.nabble.com/Order-of-.profile---.bashrc-tp30474750p30476188.html Sent from the Cygwin list mailing list archive at Nabble.com. -- Problem reports: http://cygwin.com

RE: Order of .profile & .bashrc

2010-12-16 Thread Buchbinder, Barry (NIH/NIAID) [E]
jwzumwalt sent the following at Thursday, December 16, 2010 12:39 PM > >My prompt and a few other items are not working correctly. I have found >teh following startup files... are there any more? What is the order or >priority of configuring? > >/etc/bash.bashrc >/etc/profi

Order of .profile & .bashrc

2010-12-16 Thread jwzumwalt
My prompt and a few other items are not working correctly. I have found teh following startup files... are there any more? What is the order or priority of configuring? /etc/bash.bashrc /etc/profile /etc/skel/.bashrc /etc/skel/.bash_profile /etc/skel/.inputrc $HOME/.bash_profile - commands

vimdiff sharing violation race condition when diffing .bashrc [Was: Re: Trouble with vimdiff and strace on most recent cygwin]

2010-07-02 Thread Thomas Shanks
On Tue, Jun 22, 2010 at 9:13 PM, Thomas Shanks wrote: ... > $ vimdiff /etc/skel/.bashrc ~/.bashrc > 2 files to edit > 7 [?47h [27m [24m [0m [H [J [25;1H"/etc/skel/.bashrc" 130L, 3754C > "~/.bashrc" [25;13H [K [25;13H135L, 3884C 1 [main] gvim 175

Re: .bashrc file not run

2010-02-12 Thread Cyrille Lefevre
Thorsten Kampe a écrit : * John Morrison (Fri, 12 Feb 2010 09:17:15 -) Thanks for that clarification; should I change the base-files? Or create ~/.profile as a copy/link? to ~/.bash_profile? There is no need for a ~/.profile. Only keep ~/.bash_profile IMHO, .bash_profile is a piece of

Re: .bashrc file not run

2010-02-12 Thread John Morrison
On Fri, February 12, 2010 3:42 pm, Thorsten Kampe wrote: > * John Morrison (Fri, 12 Feb 2010 09:17:15 -) >> >> Thanks for that clarification; should I change the base-files? Or >> create >> ~/.profile as a copy/link? to ~/.bash_profile? > > There is no need for a ~/.profile. Only keep ~/.bash_

Re: .bashrc file not run

2010-02-12 Thread Thorsten Kampe
* John Morrison (Fri, 12 Feb 2010 09:17:15 -) > > Thanks for that clarification; should I change the base-files? Or create > ~/.profile as a copy/link? to ~/.bash_profile? There is no need for a ~/.profile. Only keep ~/.bash_profile Thorsten -- Problem reports: http://cygwin.com/pro

Re: .bashrc file not run

2010-02-12 Thread Neil Blue
t: Re: .bashrc file not run On Fri, February 12, 2010 9:51 am, Neil Blue wrote: > I created the ~/.profile in response to the email from Csaba Raduly. the > bash man page does say it will look for ~/.profile as well. It does, but you can't expect default behaviour from a non default file!

Re: .bashrc file not run

2010-02-12 Thread John Morrison
rogram creates some terminal links like: > > C:\cygwin\bin\run.exe /usr/bin/rxvt.exe -display 127.0.0.1:0 -tn > rxvt-cygwin -e /bin/bash --login > > I just removed the --login option to preserve the results of ~/.bashrc, > but then need to set up things like my prompt again as I loos

Re: .bashrc file not run

2010-02-12 Thread Neil Blue
removed the --login option to preserve the results of ~/.bashrc, but then need to set up things like my prompt again as I loose the other automatic settings. This was a new cygwin install, downloaded a couple of days ago. I was trying to copy the skel/.bash_profile and got this: $ cp /etc/skel

Re: .bashrc file not run

2010-02-12 Thread John Morrison
On Fri, February 12, 2010 9:17 am, Neil Blue wrote: > The ~/.bashrc file wasn't called by default and altering ~/.profile did > fix the problem. Hi Neil, Where did you get the ~/.profile from? It's not a base-file file... > The comments in /etc/profile seem to imply that

Re: .bashrc file not run

2010-02-12 Thread Neil Blue
The ~/.bashrc file wasn't called by default and altering ~/.profile did fix the problem. The comments in /etc/profile seem to imply that ~/.bashrc should be run on a per user basis automatically, but this was not the case. ... # Setup some default paths. Note that this order will allow

Re: .bashrc file not run

2010-02-12 Thread John Morrison
On Fri, February 12, 2010 8:53 am, Thorsten Kampe wrote: > * John Morrison (Fri, 12 Feb 2010 08:26:24 -) >> >> ~/.bash_profile should already be setup to call ~/.bashrc >> >> it should have been in the base-files package which creates the >> /etc/skel >>

Re: .bashrc file not run

2010-02-12 Thread Thorsten Kampe
* John Morrison (Fri, 12 Feb 2010 08:26:24 -) > > ~/.bash_profile should already be setup to call ~/.bashrc > > it should have been in the base-files package which creates the /etc/skel > files which should be copied when the user first log's on. > > AFAIK bash doe

Re: .bashrc file not run

2010-02-12 Thread John Morrison
~/.bash_profile should already be setup to call ~/.bashrc it should have been in the base-files package which creates the /etc/skel files which should be copied when the user first log's on. AFAIK bash doesn't use a ~/.profile file. I *think* it's the KORN shell that does... d

Re: .bashrc file not run

2010-02-11 Thread Neil Blue
Great, Thank you both. I now have .bash_profile calling ~/.bashrc. Just had a look at the ~/.profile script on my linux box and I can see where it is making the call to the local ~/.bashrc file ... # if running bash if [ -n "$BASH_VERSION" ]; then # include .bashrc if it exists

Re: .bashrc file not run

2010-02-11 Thread Csaba Raduly
On Thu, Feb 11, 2010 at 4:06 PM, Thomas Wolff wrote: > On 11.02.2010 15:55, Neil Blue wrote: > > By design (and documentation), bash runs *only* .profile (and /etc/profile) > if started as a "login shell". Not quite. >From "info bash" , Node: Bash Startup Files When Bash is invoked as an interac

Re: .bashrc file not run

2010-02-11 Thread Thomas Wolff
On 11.02.2010 15:55, Neil Blue wrote: Hello, This problem has me stumped. Me too, a while ago. ... When I login, the environment settings I put in .bashrc don't get run. If I source ~/.bashrc they are included as expected. Also I have added some configuration to /etc/bash.bashrc it

.bashrc file not run

2010-02-11 Thread Neil Blue
Hello, This problem has me stumped. I have windows XP and cygwin with bash version 3.2.49(23)-release. I have set my passwd file to include my home directory /home/blueneil. I have placed .bashrc in my home directory and made it executable. I have placed .bashrc_profile in my home directory

Re: [1.5.25-15] bash won't load .bashrc after i rename it as `sh.exe'.

2009-07-11 Thread Mark Geisert
chengxianle writes: > Yes, .bash_profile was loaded when run bash as `bash --login'. > But still, won't load when run as `sh' or `sh --login'. Look a little further back and you'll find Dave's informative answer to your original query. ..mark -- Problem reports: http://cygwin.com/problems

Re: [1.5.25-15] bash won't load .bashrc after i rename it as `sh.exe'.

2009-07-11 Thread Andy Koppe
2009/7/12 chengxianle: > Yes, .bash_profile was loaded when run bash as `bash --login'. > But still, won't load when run as `sh' or `sh --login'. Read Dave Korn's reply again. Andy -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentati

Re: [1.5.25-15] bash won't load .bashrc after i rename it as `sh.exe'.

2009-07-11 Thread chengxia...@gmail.com
Hi, Tatsuro Thanks for your help. Yes, .bash_profile was loaded when run bash as `bash --login'. But still, won't load when run as `sh' or `sh --login'. Jason 2009/7/12 Tatsuro MATSUOKA : > Hello > > Please make the file > > .bash_profile > >

Re: [1.5.25-15] bash won't load .bashrc after i rename it as `sh.exe'.

2009-07-11 Thread Tatsuro MATSUOKA
Sorry I have misled stories. Please ignore me. --- Tatsuro MATSUOKA wrote: > Hello > > Please make the file > > .bash_profile > > and describe > > source .bashrc > > in it > > Regards > > Tatsuro > --- "chengxia...@gmail.c

Re: [1.5.25-15] bash won't load .bashrc after i rename it as `sh.exe'.

2009-07-11 Thread Tatsuro MATSUOKA
Hello Please make the file .bash_profile and describe source .bashrc in it Regards Tatsuro --- "chengxia...@gmail.com" wrote: > bash.exe loads my .bashrc in $HOME directory. > But when i copy bash.exe as sh.exe, .bashrc won't be loaded. > Rename as anythi

Re: [1.5.25-15] bash won't load .bashrc after i rename it as `sh.exe'.

2009-07-11 Thread Dave Korn
chengxianle wrote: > bash.exe loads my .bashrc in $HOME directory. > But when i copy bash.exe as sh.exe, .bashrc won't be loaded. > Rename as anything(like sh1.exe, sh2.exe, ...) except `sh.exe' works fine! By design. Invoking bash as 'sh' enters special sh-com

[1.5.25-15] bash won't load .bashrc after i rename it as `sh.exe'.

2009-07-11 Thread chengxia...@gmail.com
bash.exe loads my .bashrc in $HOME directory. But when i copy bash.exe as sh.exe, .bashrc won't be loaded. Rename as anything(like sh1.exe, sh2.exe, ...) except `sh.exe' works fine! Jason cygcheck.out Description: Binary data -- Problem reports: http://cygwin.com/problem

Re: .bashrc

2009-06-29 Thread Thorsten Kampe
* Andy Koppe (Mon, 29 Jun 2009 09:43:44 +0100) > 2009/6/29 Dave Tang: > > So I've changed my home directory to /home/d.tang in my passwd file. I > > copied the .bashrc into my new home directory. > > > > But when I restart cygwin, it still doesn't load the .ba

Re: .bashrc

2009-06-29 Thread Dave Tang
On Mon, 29 Jun 2009 18:43:44 +1000, Andy Koppe wrote: 2009/6/29 Dave Tang: So I've changed my home directory to /home/d.tang in my passwd file. I copied the .bashrc into my new home directory. But when I restart cygwin, it still doesn't load the .bashrc. Bash on Cygwin i

Re: .bashrc

2009-06-29 Thread Andy Koppe
2009/6/29 Dave Tang: > So I've changed my home directory to /home/d.tang in my passwd file. I > copied the .bashrc into my new home directory. > > But when I restart cygwin, it still doesn't load the .bashrc. Bash on Cygwin is normally invoked as a login shell, in which

Re: .bashrc

2009-06-29 Thread Dave Tang
On Mon, 29 Jun 2009 17:41:08 +1000, Thorsten Kampe wrote: * Dave Tang (Mon, 29 Jun 2009 17:34:44 +1000) Dave, don't send emails to my private email address. Keep the Reply-to to the list. Sorry about that, will remember that. Have a look at /etc/passwd how HOME is set. Check if that fi

Re: .bashrc

2009-06-29 Thread Thorsten Kampe
or the quick reply. > > So I've changed my home directory to /home/d.tang in my passwd file. I > copied the .bashrc into my new home directory. > > But when I restart cygwin, it still doesn't load the .bashrc. Did I do > something wrong? Have a look at /etc/passwd

Re: .bashrc

2009-06-29 Thread Dave Tang
ry for the confusion, I had modified my PS1 settings (which I could set after manually sourcing .bashrc) so I just put a % for my prompt in the email. If I start cygwin normally my prompt looks like this: d.t...@imb09-02635 ~ $ Also d.t...@imb09-02635 ~ $ echo $SHELL /bin/bash d.t...@imb

Re: .bashrc

2009-06-29 Thread Thorsten Kampe
odified my PS1 settings (which I could > set after manually sourcing .bashrc) so I just put a % for my prompt in > the email. > > If I start cygwin normally my prompt looks like this: > > d.t...@imb09-02635 ~ > $ > > Also > > d.t...@imb09-02635 ~ > $ echo $SHELL

Re: .bashrc

2009-06-29 Thread Dave Tang
-3143054254-1418:/cygdrive/c/Documents and Settings/d.tang:/bin/bash > In that dir you have .bashrc? %ls /cygdrive/c/Documents\ and\ Settings/d.tang/.bashrc /cygdrive/c/Documents and Settings/d.tang/.bashrc Do you spot anything funny going on? Your prompt and your home directory. Looks like you

Re: .bashrc

2009-06-28 Thread Thorsten Kampe
e/c/Documents > > and Settings/d.tang:/bin/bash > > > In that dir you have .bashrc? > > %ls /cygdrive/c/Documents\ and\ Settings/d.tang/.bashrc > /cygdrive/c/Documents and Settings/d.tang/.bashrc > > Do you spot anything funny going on? Your prompt and your home direc

Re: .bashrc

2009-06-28 Thread Dave Tang
On Mon, 29 Jun 2009 15:54:37 +1000, Linda Walsh wrote: Dave Tang wrote: Hello, I have cygwin installed on Windows XP and for some reason my .bashrc file isn't loaded on startup. I read the FAQ "Why doesn't bash read my .bashrc file on startup?" but my HOME environmen

Re: .bashrc

2009-06-28 Thread Linda Walsh
Dave Tang wrote: Hello, I have cygwin installed on Windows XP and for some reason my .bashrc file isn't loaded on startup. I read the FAQ "Why doesn't bash read my .bashrc file on startup?" but my HOME environment variable is set up i.e. when I echo $HOME it is correct.

  1   2   3   >