delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Message-ID: | <002301c2c509$4038ff90$0e6b86d9@webdev> |
From: | "Elfyn McBratney" <elfyn-cygwin AT exposure DOT org DOT uk> |
To: | "cygwin" <cygwin AT cygwin DOT com>, |
"David Christensen" <dpchrist AT holgerdanske DOT com> | |
References: | <010201c2c505$e6e52340$0b01a8c0 AT w2k30g> |
Subject: | Re: Cygwin 1.3.19 Windows 2000 Professional SP3 bash $home /usr/bin/%USERPROFILE% |
Date: | Sun, 26 Jan 2003 07:04:58 -0000 |
MIME-Version: | 1.0 |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-MimeOLE: | Produced By Microsoft MimeOLE V6.00.2800.1106 |
> 1. Cygwin Bash reports the present working directory as: > > dpchrist AT w2k30g ~ > $ pwd > /usr/bin/%USERPROFILE% > > 2. Yet Windows Explorer does not show any folder named "bin", much less > "bin\%USERPROFILE%" under "C:\cygwin\usr". The usr/bin or usr\bin folder is normally created when you first install (via setup) and is a cross-mount to /bin in cygwin as is /lib and /usr/lib . > > 3. Neither does Bash: > > dpchrist AT w2k30g ~ > $ ls /usr > doc etc include info local man sbin share src ssl tmp var Now the fact that you don't have a lib dir too is puzzling :/ It's not really a problem as such all you need to do is create a bin and lib dir in /usr (c:\cygwin\usr). > > 4. There is a folder named "%USERPROFILE%" under "C:\cygwin\bin", and > it contains the file ".bash_history". > > 5. I can cd into /bin and into /usr/bin, and end up in the same place. > > I think Cygwin is cheating -- e.g. there is a hidden link from /usr/bin > to /bin (?). What there is, is two physical dirs c:\cygwin\bin and c:\cygwin\usr\bin . One of these (c:\cygwin\bin) contains all of your programs, dlls and such with the other (c:\cygwin\usr\bin) being empty. This is because /usr/bin (c:\cygwin\usr\bin) is mounted as c:\cygwin\bin (/bin). I've been all round the house's with this so hope I haven't made you loose the plot with this one ;-) > Regarding Bash not starting up in my home directory, a quick and dirty > work-around is to create a file ".bash_profile" under > "C:\cygwin\bin\%USERPROFILE%" with contents as follows: > > export HOME=/home/$USER > > cd $HOME > . .bash_profile An even quicker and dirtier trick would be to edit your /etc/profile to exclusively set up the HOME environment variable. That way it's going to be set and you'll find yourself in your home directory when you start bash. > > I would still prefer that Cygwin Bash work correctly from a clean > install. It does for some :-) Regards, Elfyn McBratney elfyn AT exposure DOT org DOT uk www.exposure.org.uk -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |