delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/03/15/04:06:35

From: hfpop AT iname DOT com (Horia F Pop)
Subject: Re: Start-up files for bash?
15 Mar 1997 04:06:35 -0800 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <332A2374.6F97.cygnus.gnu-win32@iname.com>
References: <199703141425 DOT JAA02254 AT alpha DOT esper DOT com>
Reply-To: hfpop AT iname DOT com
Mime-Version: 1.0
X-Mailer: Mozilla 3.01 (Win95; I)
Original-To: Leonard Sisson <sissonlh AT esper DOT com>
Original-CC: gnu-win32 AT cygnus DOT com
Original-Sender: owner-gnu-win32 AT cygnus DOT com

Leonard Sisson wrote:
> 
> I have just installed the Cygnus Win32 utility binaries including Bash under
> Win 95.  A few years ago I had & helped do admin on a Sun Sparc system and
> used mostly csh.  As I recall, we had both system startup and individual
> login startup (something like .cshrc, .profile?) files as well as such files
> as some in an /etc directory (hosts & others).  I assume such startup files
> are implemented for the Win 32 port of Bash, but I haven't run across the
> documentation on how to do that yet.  Can anyone tell me where I can find
> that info?

Well, you will have to do the following:

(1) Prepare a batch file, let's say go-bash.bat with the following
contents:

set PATH=c:\cygnus\H-i386-cygwin32\bin;%PATH%
set HOME=c:\myfiles
bash

Of course you will modify the paths according to your situation.

(2) In your 'home' directory as given by the %HOME% variable you will
need the following files:

..bashrc		 will be sourced at the start of non-login shells
..bash_profile    will be sourced at login 
..bash_logout     will be sourced at logout

Be careful as the .bash* files need to be Unix-type ASCII files, not
Dos-type.

(3) For more info see the file c:\cygnus\man\man1\bash.1

I hope this helps.

Horia Pop

-------------------------------------------------------------------
Dr. Horia F. Pop, Lecturer Professor	Phone:	+40-64-194.315/154
Department of Computer Science		Fax:	+40-64-191.906
"Babes-Bolyai" University, Cluj, RO	Home:	+40-64-197.254
http://www.cs.ubbcluj.ro/~hfpop		E-mail:	hfpop AT cs DOT ubbcluj DOT ro
http://www.geocities.com/CapeCanaveral/9645	hfpop AT iname DOT com
-
For help on using this list, send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019