X-Spam-Check-By: sourceware.org Message-ID: <4524FA9A.4030409@byu.net> Date: Thu, 05 Oct 2006 06:29:14 -0600 From: Eric Blake User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.7) Gecko/20060909 Thunderbird/1.5.0.7 Mnenhy/0.7.4.666 MIME-Version: 1.0 To: cygwin AT cygwin DOT com, tom_lee01 AT hotmail DOT com Subject: Re: cygwin unix commands in windows References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to Tom Lee on 10/5/2006 6:13 AM: > >> > I really like the feature of "ls /" to display evevrything under c:/ >> >> If that's *really* what you want, i.e. you want all your >> unix/linux-style >> usr, lib, etc, bin, var (and so on) directories scattered amongst your >> win32-style "Documents and Settings", "Program Files", "WINDOWS" (and >> so on) >> directories in your C drive root directory, you should just install >> cygwin to >> C:\ instead of installing it to C:\cygwin by changing the default install >> location when you run setup.exe. > > I noticed that if I run those commands in a machine without cygwin > installed. > it still looks for c:\cygwin Which commands look for c:\cygwin when it is not installed? setup.exe, and all cygwin programs, honor your mount points. If cygwin has never been installed, then no programs know to look for c:\cygwin because there is no cygwin installed and thus no mount points. And until cygwin is installed, cygwin 'ls' will not work. Furthermore, it is not ls that handles DOS paths, but cygwin1.dll. In other words, saving a copy ls.exe will not guarantee you that DOS paths will still work if in the future you upgrade cygwin1.dll and that upgrade happens to disable DOS path support for all cygwin programs. (Of course, the likelihood of cygwin disabling DOS path support now seems slim, based on the potential backlash this list will get as compared to the minimal overhead of currently supporting it.) setup.exe defaults to installing in c:\cygwin, but you can choose to install anywhere else, including c:\ (although the FAQ specifically states that installing directly into a drive root is dangerous). And read 'man mount' for how to tell cygwin what '/' should translate to. If you did the default install, then '/' translates to 'c:\cygwin'. If you install to c:\ then '/' translates to 'c:/'. If you change cygdrive to be '/' instead of '/cygdrive/', then 'ls /c' lists the contents of c:\, regardless of what '/' maps to. It's that simple. Now quit asking, and start reading the documentation. We are getting tired of this game. The only use of the registry is for mount point settings, but you should use 'mount' rather than directly editing the registry. Or maybe since you have such a hankering desire to use DOS paths, in spite of our warnings, you should consider using djgpp or mingw instead of cygwin. - -- Life is short - so eat dessert first! Eric Blake ebb9 AT byu DOT net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.1 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFJPqZ84KuGfSFAYARApeHAJ43gvGyZ3fb5zvxGpJ3XVqpDy+cyACgwTMn QNE4LAGmGmdroLBLrO0CTwM= =fmlf -----END PGP SIGNATURE----- -- 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/