www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/03/15/04:50:32

From: sheikyy AT spartan DOT pei DOT edu (Sheik)
Subject: Re: Start-up files for bash?
15 Mar 1997 04:50:32 -0800 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <Pine.LNX.3.91.970314192704.7173A-100000.cygnus.gnu-win32@spartan.pei.edu>
Mime-Version: 1.0
Original-To: Leonard Sisson <sissonlh AT esper DOT com>
Original-cc: gnu-win32 AT cygnus DOT com
In-Reply-To: <199703141425.JAA02254@alpha.esper.com>
Original-Sender: owner-gnu-win32 AT cygnus DOT com


On Fri, 14 Mar 1997, 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, I can explain how I set up my system, I think it works pretty 
well. =) (On win95 that is)

 first off, I made a  d:\etc dir (change the d: to whatever you plan to 
use as your main filesystem.   then I made a bogus /etc/passwd file that 
looks like this.

sheik:x:500:100:sheik:/root:/bin/sh

now you have a passwd entry for yourself, and bash will look at this when 
you load it.  the important part is the  /root  bash will then look for a 
file called  /root/.bashrc  and run that if it exists.  Also, my port of 
ssh will also need this as ssh needs to make a  /root/.ssh dir.

Incidently, making the passwd file with a path to your home dir makes a 
LOT of programs "work", that I was having a tough time trying to figure 
out a way to make it work =)

also, I use the "mount" command to make things a little more nicer looking...

bash$ mount
Device           Directory           Type        Flags
d:\usr\include   /usr/include        native      no-mixed,text=binary
d:\tmp           /tmp                native      no-mixed,text=binary
d:\root          /root               native      no-mixed,text!=binary
d:\etc           /etc                native      no-mixed,text=binary
\\.\tape1:       /dev/st1            native      no-mixed,text!=binary
\\.\tape0:       /dev/st0            native      no-mixed,text!=binary
\\.\b:           /dev/fd1            native      no-mixed,text!=binary
\\.\a:           /dev/fd0            native      no-mixed,text!=binary
d:\bin           /bin                native      no-mixed,text=binary
h:               /                   native      no-mixed,text=binary

Notice the switching back and forth from text=binary and text!=binary.
its a very odd thing, things like "patch" command seems to need the 
text=binary on the file system, but other things break with that same 
thing. (my .bashrc breaks when it is text=binary)

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