Mail Archives: cygwin/2006/10/05/08:29:13
-----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/
- Raw text -