public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* .bashrc
@ 1997-09-19 10:28 Sven Brueggemann
  1997-09-19 20:23 ` .bashrc $Bill Luebkert
  0 siblings, 1 reply; 31+ messages in thread
From: Sven Brueggemann @ 1997-09-19 10:28 UTC (permalink / raw)
  To: gnu-win32

When I say PS1='$PWD>' at the bash prompt, everything works as expected.  
Using the same command in .bashrc alters the prompt but does not move the  
cursor to the first character after the prompt. Instead, bash places the  
cursor in column 1.

B18, latest coolview.

Any ideas?
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: .bashrc
  1997-09-19 10:28 .bashrc Sven Brueggemann
@ 1997-09-19 20:23 ` $Bill Luebkert
  0 siblings, 0 replies; 31+ messages in thread
From: $Bill Luebkert @ 1997-09-19 20:23 UTC (permalink / raw)
  To: Sven Brueggemann; +Cc: gnu-win32

Sven Brueggemann wrote:
> 
> When I say PS1='$PWD>' at the bash prompt, everything works as expected.
> Using the same command in .bashrc alters the prompt but does not move the
> cursor to the first character after the prompt. Instead, bash places the
> cursor in column 1.
> 
> B18, latest coolview.
> 
> Any ideas?

Sounds like you have \r's in your .bashrc, try removing them
if that's the case.

-- 
  ,-/-  __      _  _         $Bill Luebkert
 (_/   /  )    // //       DBE Collectibles
  / ) /--<  o // //      http://www.wgn.net/~dbe/
-/-' /___/_<_</_</_    Email: dbe@wgn.net
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: .bashrc
  2009-06-29  9:52             ` .bashrc Andy Koppe
  2009-06-29 14:40               ` .bashrc Dave Tang
@ 2009-06-29 14:51               ` Thorsten Kampe
  1 sibling, 0 replies; 31+ messages in thread
From: Thorsten Kampe @ 2009-06-29 14:51 UTC (permalink / raw)
  To: cygwin

* 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 .bashrc.
> 
> Bash on Cygwin is normally invoked as a login shell, in which case it
> doesn't source .bashrc. Instead, it sources .bash_profile or .profile,
> so unless you explicitly source .bashrc from there, it won't be
> processed.

Excellent point. The default .bash_profile takes care of that.

Thorsten


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

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: .bashrc
  2009-06-29  9:52             ` .bashrc Andy Koppe
@ 2009-06-29 14:40               ` Dave Tang
  2009-06-29 14:51               ` .bashrc Thorsten Kampe
  1 sibling, 0 replies; 31+ messages in thread
From: Dave Tang @ 2009-06-29 14:40 UTC (permalink / raw)
  To: cygwin

On Mon, 29 Jun 2009 18:43:44 +1000, Andy Koppe <andy.koppe@gmail.com>  
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 is normally invoked as a login shell, in which case it
> doesn't source .bashrc. Instead, it sources .bash_profile or .profile,
> so unless you explicitly source .bashrc from there, it won't be
> processed.
>
> See here for the full story:
> http://www.gnu.org/software/bash/manual/bashref.html#Bash-Startup-Files

Thank you Andy! Problem was the missing .bash_profile file.

Cheers,

Dave

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

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


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

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: .bashrc
  2009-06-29  9:29           ` .bashrc Dave Tang
  2009-06-29  9:34             ` .bashrc Thorsten Kampe
@ 2009-06-29  9:52             ` Andy Koppe
  2009-06-29 14:40               ` .bashrc Dave Tang
  2009-06-29 14:51               ` .bashrc Thorsten Kampe
  1 sibling, 2 replies; 31+ messages in thread
From: Andy Koppe @ 2009-06-29  9:52 UTC (permalink / raw)
  To: cygwin

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 case it
doesn't source .bashrc. Instead, it sources .bash_profile or .profile,
so unless you explicitly source .bashrc from there, it won't be
processed.

See here for the full story:
http://www.gnu.org/software/bash/manual/bashref.html#Bash-Startup-Files

Andy

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

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: .bashrc
  2009-06-29  9:34             ` .bashrc Thorsten Kampe
@ 2009-06-29  9:35               ` Dave Tang
  0 siblings, 0 replies; 31+ messages in thread
From: Dave Tang @ 2009-06-29  9:35 UTC (permalink / raw)
  To: cygwin

On Mon, 29 Jun 2009 17:41:08 +1000, Thorsten Kampe  
<thorsten@thorstenkampe.de> 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 file is
> sourced. Then you could set option xtrace to see what is being done.

I did a bit of googling but could not work out how I can find out if a  
file is sourced. I also tried to search for "set option xtrace" without  
luck. Could you elaborate a bit more for a biologist?

Really appreciate your help,

Dave

>
> Thorsten

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


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

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: .bashrc
  2009-06-29  9:29           ` .bashrc Dave Tang
@ 2009-06-29  9:34             ` Thorsten Kampe
  2009-06-29  9:35               ` .bashrc Dave Tang
  2009-06-29  9:52             ` .bashrc Andy Koppe
  1 sibling, 1 reply; 31+ messages in thread
From: Thorsten Kampe @ 2009-06-29  9:34 UTC (permalink / raw)
  To: cygwin

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

> > Doesn't really matter. The important thing is your home directory. 
Set
> > it to /home/d.tang
> >
> > T.
> 
> Thanks for 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 how HOME is set. Check if that file is 
sourced. Then you could set option xtrace to see what is being done.

Thorsten


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

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: .bashrc
  2009-06-29  8:43         ` .bashrc Thorsten Kampe
@ 2009-06-29  9:29           ` Dave Tang
  2009-06-29  9:34             ` .bashrc Thorsten Kampe
  2009-06-29  9:52             ` .bashrc Andy Koppe
  0 siblings, 2 replies; 31+ messages in thread
From: Dave Tang @ 2009-06-29  9:29 UTC (permalink / raw)
  To: Thorsten Kampe, cygwin

On Mon, 29 Jun 2009 17:21:21 +1000, Thorsten Kampe  
<thorsten@thorstenkampe.de> wrote:

> * Dave Tang (Mon, 29 Jun 2009 17:11:26 +1000)
>> >> Do you spot anything funny going on?
>> >
>> > Your prompt and your home directory. Looks like you're not using bash
>> > (but zsh maybe) and not using the defaults.
>>
>> Ah sorry 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.tang@imb09-02635 ~
>> $
>>
>> Also
>>
>> d.tang@imb09-02635 ~
>> $ echo $SHELL
>> /bin/bash
>>
>> d.tang@imb09-02635 ~
>> $ echo $0
>> -bash
>
> Doesn't really matter. The important thing is your home directory. Set
> it to /home/d.tang
>
> T.

Thanks for 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?


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

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: .bashrc
  2009-06-29  7:58       ` .bashrc Dave Tang
@ 2009-06-29  8:43         ` Thorsten Kampe
  2009-06-29  9:29           ` .bashrc Dave Tang
  0 siblings, 1 reply; 31+ messages in thread
From: Thorsten Kampe @ 2009-06-29  8:43 UTC (permalink / raw)
  To: cygwin

* Dave Tang (Mon, 29 Jun 2009 17:11:26 +1000)
> >> Do you spot anything funny going on?
> >
> > Your prompt and your home directory. Looks like you're not using bash
> > (but zsh maybe) and not using the defaults.
> 
> Ah sorry 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.tang@imb09-02635 ~
> $
> 
> Also
> 
> d.tang@imb09-02635 ~
> $ echo $SHELL
> /bin/bash
> 
> d.tang@imb09-02635 ~
> $ echo $0
> -bash

Doesn't really matter. The important thing is your home directory. Set 
it to /home/d.tang

T.


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

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: .bashrc
  2009-06-29  7:34     ` .bashrc Thorsten Kampe
@ 2009-06-29  7:58       ` Dave Tang
  2009-06-29  8:43         ` .bashrc Thorsten Kampe
  0 siblings, 1 reply; 31+ messages in thread
From: Dave Tang @ 2009-06-29  7:58 UTC (permalink / raw)
  To: Thorsten Kampe, cygwin

On Mon, 29 Jun 2009 16:52:25 +1000, Thorsten Kampe  
<thorsten@thorstenkampe.de> wrote:

> * Dave Tang (Mon, 29 Jun 2009 16:21:04 +1000)
>> %whoami
>> d.tang
>>
>> %echo $HOME
>> /cygdrive/c/Documents and Settings/d.tang
>>
>> %cat /etc/passwd
>> d.tang:unused_by_nt/2000/xp:11418:10545:d.tang,U-IMBPC\d.tang,S-1-5-21-2360347544-2198861549-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 not using bash
> (but zsh maybe) and not using the defaults.

Ah sorry 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.tang@imb09-02635 ~
$

Also

d.tang@imb09-02635 ~
$ echo $SHELL
/bin/bash

d.tang@imb09-02635 ~
$ echo $0
-bash

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

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


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

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: .bashrc
  2009-06-29  7:22   ` .bashrc Dave Tang
@ 2009-06-29  7:34     ` Thorsten Kampe
  2009-06-29  7:58       ` .bashrc Dave Tang
  0 siblings, 1 reply; 31+ messages in thread
From: Thorsten Kampe @ 2009-06-29  7:34 UTC (permalink / raw)
  To: cygwin

* Dave Tang (Mon, 29 Jun 2009 16:21:04 +1000)
> %whoami
> d.tang
> 
> %echo $HOME
> /cygdrive/c/Documents and Settings/d.tang
> 
> %cat /etc/passwd
> d.tang:unused_by_nt/2000/xp:11418:10545:d.tang,U-IMBPC\d.tang,S-1-5-21-2360347544-2198861549-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 not using bash 
(but zsh maybe) and not using the defaults.

Thorsten


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

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: .bashrc
  2009-06-29  6:21 ` .bashrc Linda Walsh
@ 2009-06-29  7:22   ` Dave Tang
  2009-06-29  7:34     ` .bashrc Thorsten Kampe
  0 siblings, 1 reply; 31+ messages in thread
From: Dave Tang @ 2009-06-29  7:22 UTC (permalink / raw)
  To: Linda Walsh, cygwin

On Mon, 29 Jun 2009 15:54:37 +1000, Linda Walsh <cygwin@tlinx.org> 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 environment variable is set up  
>> i.e. when I echo $HOME it is correct. I actually copied my .bashrc to  
>> the root directory and it still doesn't load.
>>  Could someone explain how I can set up my .bashrc?
> ----
> 	Are you sure you have your /etc/passwd entry setup
> correctly?  I.e. when you type 'whoami' at the bash prompt,
> it gives your username -- and you have an entry in /etc/passwd
> setup that lists your home directory?
>

Thanks for the quick reply.

%whoami
d.tang

%echo $HOME
/cygdrive/c/Documents and Settings/d.tang

%cat /etc/passwd
d.tang:unused_by_nt/2000/xp:11418:10545:d.tang,U-IMBPC\d.tang,S-1-5-21-2360347544-2198861549-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?

Thanks again,

Dave

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

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


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

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: .bashrc
  2009-06-29  6:12 .bashrc Dave Tang
@ 2009-06-29  6:21 ` Linda Walsh
  2009-06-29  7:22   ` .bashrc Dave Tang
  0 siblings, 1 reply; 31+ messages in thread
From: Linda Walsh @ 2009-06-29  6:21 UTC (permalink / raw)
  To: cygwin

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. I actually copied my .bashrc to 
> the root directory and it still doesn't load.
> 
> Could someone explain how I can set up my .bashrc?
----
	Are you sure you have your /etc/passwd entry setup
correctly?  I.e. when you type 'whoami' at the bash prompt,
it gives your username -- and you have an entry in /etc/passwd
setup that lists your home directory?

In that dir you have .bashrc?


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

^ permalink raw reply	[flat|nested] 31+ messages in thread

* .bashrc
@ 2009-06-29  6:12 Dave Tang
  2009-06-29  6:21 ` .bashrc Linda Walsh
  0 siblings, 1 reply; 31+ messages in thread
From: Dave Tang @ 2009-06-29  6:12 UTC (permalink / raw)
  To: cygwin

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. I actually copied my .bashrc to the root  
directory and it still doesn't load.

Could someone explain how I can set up my .bashrc?

Many thanks,

Dave

P.S. Here's the FAQ from  
http://cygwin.com/1.7/faq/faq.using.html#faq.using.bashrc

7. Why doesn't bash read my .bashrc file on startup?
	
Your .bashrc is read from your home directory specified by the HOME  
environment variable. It uses /.bashrc if HOME is not set. So you need to  
set HOME (and the home dir in your /etc/passwd entry) correctly.

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


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

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: .bashrc
  2004-06-21 12:48 .bashrc Vasoczki Ferenc
  2004-06-21 12:54 ` .bashrc Erik Weibust
@ 2004-06-21 13:31 ` Igor Pechtchanski
  1 sibling, 0 replies; 31+ messages in thread
From: Igor Pechtchanski @ 2004-06-21 13:31 UTC (permalink / raw)
  To: Vasoczki Ferenc; +Cc: cygwin

On Mon, 21 Jun 2004, Vasoczki Ferenc wrote:

> Hi!
>
> I installed the cygwin again, and read the SGT settings.
> It wrote, i should edit my .bashrc, but there is no .bashrc after
> install in /home/myuser directory, only a .bash_history ?
>
> How can i tell to cygwin to create 1 ?
> Vaso

The latest default /etc/profile should have copied these files into your
$HOME if it didn't exist before.  Rename your home directory (e.g., to
/home/myuser-bak) and start a login bash (e.g., by double-clicking on the
Cygwin icon).  Then copy everything from /home/myuser to /home/myuser-bak;
remove /home/myuser, and rename /home/myuser-bak back to /home/myuser.
Provided you have the latest /etc/profile, this should work.  If not, and
you don't have any customizations in your /etc/profile, remove it,
re-install the "base-files" package, and then repeat the above steps.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: .bashrc
  2004-06-21 12:48 .bashrc Vasoczki Ferenc
@ 2004-06-21 12:54 ` Erik Weibust
  2004-06-21 13:31 ` .bashrc Igor Pechtchanski
  1 sibling, 0 replies; 31+ messages in thread
From: Erik Weibust @ 2004-06-21 12:54 UTC (permalink / raw)
  To: Vasoczki Ferenc, Cygwin (Elektronikus levelek)

There is a default .bashrc you can use in /etc/skel

Erik

--- Vasoczki Ferenc <ferenc_vasoczki@gallup.hu> wrote:
> Hi!
> 
> I installed the cygwin again, and read the SGT
> settings.
> It wrote, i should edit my .bashrc, but there is no
> .bashrc after install in /home/myuser 
> directory, only a .bash_history ?
> 
> How can i tell to cygwin to create 1 ?
> 
> Vaso
> 
> --
> Unsubscribe info:     
> http://cygwin.com/ml/#unsubscribe-simple
> Problem reports:      
> http://cygwin.com/problems.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
> 
> 


=====
Erik Weibust
http://erik.weibust.net

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 31+ messages in thread

* .bashrc
@ 2004-06-21 12:48 Vasoczki Ferenc
  2004-06-21 12:54 ` .bashrc Erik Weibust
  2004-06-21 13:31 ` .bashrc Igor Pechtchanski
  0 siblings, 2 replies; 31+ messages in thread
From: Vasoczki Ferenc @ 2004-06-21 12:48 UTC (permalink / raw)
  To: Cygwin (Elektronikus levelek)

Hi!

I installed the cygwin again, and read the SGT settings.
It wrote, i should edit my .bashrc, but there is no .bashrc after install in /home/myuser 
directory, only a .bash_history ?

How can i tell to cygwin to create 1 ?

Vaso

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: .bashrc
  1999-09-28 20:08 ` .bashrc The Tolands
  1999-09-28 22:02   ` .bashrc Franklin Wingate
@ 1999-09-30 23:42   ` The Tolands
  1 sibling, 0 replies; 31+ messages in thread
From: The Tolands @ 1999-09-30 23:42 UTC (permalink / raw)
  To: Franklin Wingate; +Cc: Cygwin List

Your problem is with the following two lines:

export PATH=
opt/Mix_nt; /usr/local/bin /usr/X11R6.4/bin$PATH

This should read:

export PATH=/opt/Mix_nt:/usr/local/bin:/usr/X11R6.4/bin:$PATH

Note that it is one line and uses colons to seperate each element of the
path.  I really strongly recommend that you get a good book on BASH.
_Learning the bash Shell_ from O'Reilly is pretty good.

phil

----- Original Message -----
From: Franklin Wingate <maurio@csh.rit.edu>
To: <cygwin@sourceware.cygnus.com>
Sent: Tuesday, 28 September, 1999 21:51
Subject: .bashrc


>
> Sorry to keep bothering everyone with this basic problem, but some time
> ago, i was using the information on
> http://www.scoutsys.com/sunt/su32/setting_up_cygwin.htm which no longer
> exists i basically set up my directory structure and bashrc file as was
> indicated on the page, but when i try to use the .bashrc file, i get
> /opt/Mix_nt is a director. I have included the file for someone to inspect
> please someone give me a straight answer what i'm doing wrong



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 31+ messages in thread

* RE: .bashrc
  1999-09-28  5:06 .bashrc Christian Mallwitz
@ 1999-09-30 23:42 ` Christian Mallwitz
  0 siblings, 0 replies; 31+ messages in thread
From: Christian Mallwitz @ 1999-09-30 23:42 UTC (permalink / raw)
  To: 'Erik Hensema', cygwin

Hi,

I had problems because my .inputrc contained '\r\n' (0x0d 0x0a) as line
separator. So make sure that you use '\n' (0x0A) as separator only ...

cheers
Christian
-- 
Christian Mallwitz  INTERSHOP Communications Germany
Senior Software Engineer     phone: +49 3641 894 334
pgp: 02 30 7E 1A 7A C1 5C 16 2B 4D 53 A9 1B 05 F7 DD

> -----Original Message-----
> From: Erik Hensema [ mailto:erik.hensema@group2000.nl ]
> Sent: Tuesday, September 28, 1999 08:49
> To: cygwin@sourceware.cygnus.com
> Subject: RE: .bashrc
> 
> 
> > -----Original Message-----
> > From: Franklin Wingate [ mailto:maurio@csh.rit.edu ]
> > Sent: Monday, September 27, 1999 6:46 PM
> > To: cygwin@sourceware.cygnus.com
> > Subject: .bashrc
> > 
> > Could someone send me a copy of what a working .bashrc file 
> > should look
> > like
> 
> There shouldn't be anything special in it. This is mine:
> 
> export PS1="\h:\w\\$ "
> alias ls="ls --color=tty -p"
> cd
> 
> This is the batch file I use for starting bash:
> @ECHO OFF
> SET MAKE_MODE=UNIX
> SET PATH=d:\cygnus\CYGWIN~1\H-I586~1\bin;%PATH%;/usr/local/bin
> SET HOME=/home/erikh
> set TERM=ansi
> bash
> 
> erikh is my NT login name.
> 
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe@sourceware.cygnus.com
> 

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 31+ messages in thread

* .bashrc
  1999-09-28 19:50 .bashrc Franklin Wingate
  1999-09-28 20:08 ` .bashrc The Tolands
@ 1999-09-30 23:42 ` Franklin Wingate
  1 sibling, 0 replies; 31+ messages in thread
From: Franklin Wingate @ 1999-09-30 23:42 UTC (permalink / raw)
  To: cygwin

Sorry to keep bothering everyone with this basic problem, but some time
ago, i was using the information on
http://www.scoutsys.com/sunt/su32/setting_up_cygwin.htm which no longer
exists i basically set up my directory structure and bashrc file as was
indicated on the page, but when i try to use the .bashrc file, i get
/opt/Mix_nt is a director. I have included the file for someone to inspect
please someone give me a straight answer what i'm doing wrong


^ permalink raw reply	[flat|nested] 31+ messages in thread

* RE: .bashrc
  1999-09-27 23:49 .bashrc Erik Hensema
@ 1999-09-30 23:42 ` Erik Hensema
  0 siblings, 0 replies; 31+ messages in thread
From: Erik Hensema @ 1999-09-30 23:42 UTC (permalink / raw)
  To: cygwin

> -----Original Message-----
> From: Franklin Wingate [ mailto:maurio@csh.rit.edu ]
> Sent: Monday, September 27, 1999 6:46 PM
> To: cygwin@sourceware.cygnus.com
> Subject: .bashrc
> 
> Could someone send me a copy of what a working .bashrc file 
> should look
> like

There shouldn't be anything special in it. This is mine:

export PS1="\h:\w\\$ "
alias ls="ls --color=tty -p"
cd

This is the batch file I use for starting bash:
@ECHO OFF
SET MAKE_MODE=UNIX
SET PATH=d:\cygnus\CYGWIN~1\H-I586~1\bin;%PATH%;/usr/local/bin
SET HOME=/home/erikh
set TERM=ansi
bash

erikh is my NT login name.

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: .bashrc
  1999-09-28 22:02   ` .bashrc Franklin Wingate
@ 1999-09-30 23:42     ` Franklin Wingate
  0 siblings, 0 replies; 31+ messages in thread
From: Franklin Wingate @ 1999-09-30 23:42 UTC (permalink / raw)
  To: The Tolands; +Cc: Cygwin List

Thank you! :-)

now that that's taken care of can anyone direct me to a webpage that shows
one how to properly set up an xserver. I have the directory structure set
up but when i run startx i get no xterm, and the xserver shuts down with
teh message: "fatal IO error 0 (no such error) on X server "LOCAL:0.0"
after 250 requests with 0 events remaining


On Tue, 28 Sep 1999, The Tolands wrote:

> Your problem is with the following two lines:
> 
> export PATH=
> opt/Mix_nt; /usr/local/bin /usr/X11R6.4/bin$PATH
> 
> This should read:
> 
> export PATH=/opt/Mix_nt:/usr/local/bin:/usr/X11R6.4/bin:$PATH
> 
> Note that it is one line and uses colons to seperate each element of the
> path.  I really strongly recommend that you get a good book on BASH.
> _Learning the bash Shell_ from O'Reilly is pretty good.
> 
> phil
> 
> ----- Original Message -----
> From: Franklin Wingate <maurio@csh.rit.edu>
> To: <cygwin@sourceware.cygnus.com>
> Sent: Tuesday, 28 September, 1999 21:51
> Subject: .bashrc
> 
> 
> >
> > Sorry to keep bothering everyone with this basic problem, but some time
> > ago, i was using the information on
> > http://www.scoutsys.com/sunt/su32/setting_up_cygwin.htm which no longer
> > exists i basically set up my directory structure and bashrc file as was
> > indicated on the page, but when i try to use the .bashrc file, i get
> > /opt/Mix_nt is a director. I have included the file for someone to inspect
> > please someone give me a straight answer what i'm doing wrong
> 
> 


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 31+ messages in thread

* .bashrc
  1999-09-27  9:45 .bashrc Franklin Wingate
@ 1999-09-30 23:42 ` Franklin Wingate
  0 siblings, 0 replies; 31+ messages in thread
From: Franklin Wingate @ 1999-09-30 23:42 UTC (permalink / raw)
  To: cygwin

Could someone send me a copy of what a working .bashrc file should look
like



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: .bashrc
  1999-09-28 20:08 ` .bashrc The Tolands
@ 1999-09-28 22:02   ` Franklin Wingate
  1999-09-30 23:42     ` .bashrc Franklin Wingate
  1999-09-30 23:42   ` .bashrc The Tolands
  1 sibling, 1 reply; 31+ messages in thread
From: Franklin Wingate @ 1999-09-28 22:02 UTC (permalink / raw)
  To: The Tolands; +Cc: Cygwin List

Thank you! :-)

now that that's taken care of can anyone direct me to a webpage that shows
one how to properly set up an xserver. I have the directory structure set
up but when i run startx i get no xterm, and the xserver shuts down with
teh message: "fatal IO error 0 (no such error) on X server "LOCAL:0.0"
after 250 requests with 0 events remaining


On Tue, 28 Sep 1999, The Tolands wrote:

> Your problem is with the following two lines:
> 
> export PATH=
> opt/Mix_nt; /usr/local/bin /usr/X11R6.4/bin$PATH
> 
> This should read:
> 
> export PATH=/opt/Mix_nt:/usr/local/bin:/usr/X11R6.4/bin:$PATH
> 
> Note that it is one line and uses colons to seperate each element of the
> path.  I really strongly recommend that you get a good book on BASH.
> _Learning the bash Shell_ from O'Reilly is pretty good.
> 
> phil
> 
> ----- Original Message -----
> From: Franklin Wingate <maurio@csh.rit.edu>
> To: <cygwin@sourceware.cygnus.com>
> Sent: Tuesday, 28 September, 1999 21:51
> Subject: .bashrc
> 
> 
> >
> > Sorry to keep bothering everyone with this basic problem, but some time
> > ago, i was using the information on
> > http://www.scoutsys.com/sunt/su32/setting_up_cygwin.htm which no longer
> > exists i basically set up my directory structure and bashrc file as was
> > indicated on the page, but when i try to use the .bashrc file, i get
> > /opt/Mix_nt is a director. I have included the file for someone to inspect
> > please someone give me a straight answer what i'm doing wrong
> 
> 


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: .bashrc
  1999-09-28 19:50 .bashrc Franklin Wingate
@ 1999-09-28 20:08 ` The Tolands
  1999-09-28 22:02   ` .bashrc Franklin Wingate
  1999-09-30 23:42   ` .bashrc The Tolands
  1999-09-30 23:42 ` .bashrc Franklin Wingate
  1 sibling, 2 replies; 31+ messages in thread
From: The Tolands @ 1999-09-28 20:08 UTC (permalink / raw)
  To: Franklin Wingate; +Cc: Cygwin List

Your problem is with the following two lines:

export PATH=
opt/Mix_nt; /usr/local/bin /usr/X11R6.4/bin$PATH

This should read:

export PATH=/opt/Mix_nt:/usr/local/bin:/usr/X11R6.4/bin:$PATH

Note that it is one line and uses colons to seperate each element of the
path.  I really strongly recommend that you get a good book on BASH.
_Learning the bash Shell_ from O'Reilly is pretty good.

phil

----- Original Message -----
From: Franklin Wingate <maurio@csh.rit.edu>
To: <cygwin@sourceware.cygnus.com>
Sent: Tuesday, 28 September, 1999 21:51
Subject: .bashrc


>
> Sorry to keep bothering everyone with this basic problem, but some time
> ago, i was using the information on
> http://www.scoutsys.com/sunt/su32/setting_up_cygwin.htm which no longer
> exists i basically set up my directory structure and bashrc file as was
> indicated on the page, but when i try to use the .bashrc file, i get
> /opt/Mix_nt is a director. I have included the file for someone to inspect
> please someone give me a straight answer what i'm doing wrong



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 31+ messages in thread

* .bashrc
@ 1999-09-28 19:50 Franklin Wingate
  1999-09-28 20:08 ` .bashrc The Tolands
  1999-09-30 23:42 ` .bashrc Franklin Wingate
  0 siblings, 2 replies; 31+ messages in thread
From: Franklin Wingate @ 1999-09-28 19:50 UTC (permalink / raw)
  To: cygwin

Sorry to keep bothering everyone with this basic problem, but some time
ago, i was using the information on
http://www.scoutsys.com/sunt/su32/setting_up_cygwin.htm which no longer
exists i basically set up my directory structure and bashrc file as was
indicated on the page, but when i try to use the .bashrc file, i get
/opt/Mix_nt is a director. I have included the file for someone to inspect
please someone give me a straight answer what i'm doing wrong


^ permalink raw reply	[flat|nested] 31+ messages in thread

* RE: .bashrc
@ 1999-09-28  5:06 Christian Mallwitz
  1999-09-30 23:42 ` .bashrc Christian Mallwitz
  0 siblings, 1 reply; 31+ messages in thread
From: Christian Mallwitz @ 1999-09-28  5:06 UTC (permalink / raw)
  To: 'Erik Hensema', cygwin

Hi,

I had problems because my .inputrc contained '\r\n' (0x0d 0x0a) as line
separator. So make sure that you use '\n' (0x0A) as separator only ...

cheers
Christian
-- 
Christian Mallwitz  INTERSHOP Communications Germany
Senior Software Engineer     phone: +49 3641 894 334
pgp: 02 30 7E 1A 7A C1 5C 16 2B 4D 53 A9 1B 05 F7 DD

> -----Original Message-----
> From: Erik Hensema [ mailto:erik.hensema@group2000.nl ]
> Sent: Tuesday, September 28, 1999 08:49
> To: cygwin@sourceware.cygnus.com
> Subject: RE: .bashrc
> 
> 
> > -----Original Message-----
> > From: Franklin Wingate [ mailto:maurio@csh.rit.edu ]
> > Sent: Monday, September 27, 1999 6:46 PM
> > To: cygwin@sourceware.cygnus.com
> > Subject: .bashrc
> > 
> > Could someone send me a copy of what a working .bashrc file 
> > should look
> > like
> 
> There shouldn't be anything special in it. This is mine:
> 
> export PS1="\h:\w\\$ "
> alias ls="ls --color=tty -p"
> cd
> 
> This is the batch file I use for starting bash:
> @ECHO OFF
> SET MAKE_MODE=UNIX
> SET PATH=d:\cygnus\CYGWIN~1\H-I586~1\bin;%PATH%;/usr/local/bin
> SET HOME=/home/erikh
> set TERM=ansi
> bash
> 
> erikh is my NT login name.
> 
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe@sourceware.cygnus.com
> 

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 31+ messages in thread

* RE: .bashrc
@ 1999-09-27 23:49 Erik Hensema
  1999-09-30 23:42 ` .bashrc Erik Hensema
  0 siblings, 1 reply; 31+ messages in thread
From: Erik Hensema @ 1999-09-27 23:49 UTC (permalink / raw)
  To: cygwin

> -----Original Message-----
> From: Franklin Wingate [ mailto:maurio@csh.rit.edu ]
> Sent: Monday, September 27, 1999 6:46 PM
> To: cygwin@sourceware.cygnus.com
> Subject: .bashrc
> 
> Could someone send me a copy of what a working .bashrc file 
> should look
> like

There shouldn't be anything special in it. This is mine:

export PS1="\h:\w\\$ "
alias ls="ls --color=tty -p"
cd

This is the batch file I use for starting bash:
@ECHO OFF
SET MAKE_MODE=UNIX
SET PATH=d:\cygnus\CYGWIN~1\H-I586~1\bin;%PATH%;/usr/local/bin
SET HOME=/home/erikh
set TERM=ansi
bash

erikh is my NT login name.

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 31+ messages in thread

* .bashrc
@ 1999-09-27  9:45 Franklin Wingate
  1999-09-30 23:42 ` .bashrc Franklin Wingate
  0 siblings, 1 reply; 31+ messages in thread
From: Franklin Wingate @ 1999-09-27  9:45 UTC (permalink / raw)
  To: cygwin

Could someone send me a copy of what a working .bashrc file should look
like



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 31+ messages in thread

* .bashrc
@ 1999-01-31 23:52 Aldo Mazzilli
  0 siblings, 0 replies; 31+ messages in thread
From: Aldo Mazzilli @ 1999-01-31 23:52 UTC (permalink / raw)
  To: gnu-win32

Hello !

I have a problem with .bashrc file
Under win95, .bashrc is correctly executed
But under NT, .bashrc is not found by the BASH Shell.

HOME variable is correctly set.

Cam someone help me ?

Thanks a lot ...
-- 
=======================================================================
,',',',',',',' Aldo MAZZILLI             | INRIA Rhone-Alpes          |
,',',',',',',' aldo.mazzilli@inrialpes.fr| 655, avenue de l'Europe    |
,',',',',',',' Tel : 04 76 61 53 91      | 38330 Montbonnot St Martin |
,',',',',',',' Fax : 04 76 61 52 52      | FRANCE                     |
,',' *** Site WEB : http://www.inrialpes.fr/vasy/people/Aldo.Mazzilli |
=======================================================================
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: .bashrc
@ 1997-09-19 22:37 Wei Ku
  0 siblings, 0 replies; 31+ messages in thread
From: Wei Ku @ 1997-09-19 22:37 UTC (permalink / raw)
  To: Sven Brueggemann, gnu-win32

Try to put this line in the .bash_profile

 export PS1='//\h/.../\W \$ '

Wei Ku

-----Original Message-----
From: Sven Brueggemann <sven@brem.de>
To: gnu-win32@cygnus.com <gnu-win32@cygnus.com>
Date: Friday, September 19, 1997 7:27 PM
Subject: .bashrc



>
>When I say PS1='$PWD>' at the bash prompt, everything works as expected.
>Using the same command in .bashrc alters the prompt but does not move the
>cursor to the first character after the prompt. Instead, bash places the
>cursor in column 1.
>
>B18, latest coolview.
>
>Any ideas?
>-
>For help on using this list (especially unsubscribing), send a message to
>"gnu-win32-request@cygnus.com" with one line of text: "help".
>

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 31+ messages in thread

end of thread, other threads:[~2009-06-29 12:52 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-09-19 10:28 .bashrc Sven Brueggemann
1997-09-19 20:23 ` .bashrc $Bill Luebkert
1997-09-19 22:37 .bashrc Wei Ku
1999-01-31 23:52 .bashrc Aldo Mazzilli
1999-09-27  9:45 .bashrc Franklin Wingate
1999-09-30 23:42 ` .bashrc Franklin Wingate
1999-09-27 23:49 .bashrc Erik Hensema
1999-09-30 23:42 ` .bashrc Erik Hensema
1999-09-28  5:06 .bashrc Christian Mallwitz
1999-09-30 23:42 ` .bashrc Christian Mallwitz
1999-09-28 19:50 .bashrc Franklin Wingate
1999-09-28 20:08 ` .bashrc The Tolands
1999-09-28 22:02   ` .bashrc Franklin Wingate
1999-09-30 23:42     ` .bashrc Franklin Wingate
1999-09-30 23:42   ` .bashrc The Tolands
1999-09-30 23:42 ` .bashrc Franklin Wingate
2004-06-21 12:48 .bashrc Vasoczki Ferenc
2004-06-21 12:54 ` .bashrc Erik Weibust
2004-06-21 13:31 ` .bashrc Igor Pechtchanski
2009-06-29  6:12 .bashrc Dave Tang
2009-06-29  6:21 ` .bashrc Linda Walsh
2009-06-29  7:22   ` .bashrc Dave Tang
2009-06-29  7:34     ` .bashrc Thorsten Kampe
2009-06-29  7:58       ` .bashrc Dave Tang
2009-06-29  8:43         ` .bashrc Thorsten Kampe
2009-06-29  9:29           ` .bashrc Dave Tang
2009-06-29  9:34             ` .bashrc Thorsten Kampe
2009-06-29  9:35               ` .bashrc Dave Tang
2009-06-29  9:52             ` .bashrc Andy Koppe
2009-06-29 14:40               ` .bashrc Dave Tang
2009-06-29 14:51               ` .bashrc Thorsten Kampe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).