From 63928f6088d7f44f4f8d3962aff68891071a2fb6 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Tue, 4 Dec 2001 04:20:31 +0000 Subject: Cleanup copyrights and Cygnus'isms throughout. * setup.sgml: Nuke ancient instructions. --- winsup/doc/pathnames.sgml | 74 +++++++++++++---------------------------------- 1 file changed, 20 insertions(+), 54 deletions(-) (limited to 'winsup/doc/pathnames.sgml') diff --git a/winsup/doc/pathnames.sgml b/winsup/doc/pathnames.sgml index 8dd8dcb78..00b216e92 100644 --- a/winsup/doc/pathnames.sgml +++ b/winsup/doc/pathnames.sgml @@ -42,7 +42,7 @@ the appropriate priviledges (Administrator priviledges in Windows NT). The current user's table is located under -"HKEY_CURRENT_USER/Software/Cygnus Solutions/Cygwin/mounts +"HKEY_CURRENT_USER/Software/Red Hat, Inc./Cygwin/mounts v<version>" where <version> is the latest registry version associated with the Cygwin library (this version is not the same as the release @@ -70,10 +70,13 @@ to the current user. Displaying the current set of mount points -c:\cygnus\> mount -Device Directory Type Flags -D: /d user textmode -C: / system textmode +c:\> mount +f:\cygwin\bin on /usr/bin type system (binmode) +f:\cygwin\lib on /usr/lib type system (binmode) +f:\cygwin on / type system (binmode) +e:\src on /usr/src type system (binmode) +c: on /cygdrive/c type user (binmode,noumount) +e: on /cygdrive/e type user (binmode,noumount) @@ -102,43 +105,6 @@ information on text and binary modes. -Cygwin Mount Table Strategies - -Which set of mounts is right for a given Cygwin user depends -largely on how closely you want to simulate a POSIX environment, -whether you mix Windows and Cygwin programs, and how many drive -letters you are using. If you want to be very POSIX-like (assuming -"CygwinRoot" is the top directory of your Cygwin distribution), you may -want to do something like this: - -POSIX-like mount setup - -C:\> mount c:\Cygnus\CygwinRoot / -C:\> mount c:\ /c -C:\> mount d:\ /d -C:\> mount e:\ /cdrom - - - -However, if you mix Windows and Cygwin programs a lot, you might -want to create an "identity" mapping, so that conversions between the -two (see ) can be eliminated: - -Identity mount setup - -C:\> mount c:\ / -C:\> mount d:\foo /foo -C:\> mount d:\bar /bar -C:\> mount e:\grill /grill - - - -You'd have to repeat this for all top-level subdirectories on -all drives, but then you'd always have the top-level directories -available as the same names in both systems. - - - Additional Path-related Information The cygpath program provides the ability to @@ -147,10 +113,10 @@ translate between Win32 and POSIX pathnames in shell scripts. See The HOME, PATH, and LD_LIBRARY_PATH environment variables are automatically -converted from Win32 format to POSIX format (e.g. from -C:\cygnus\cygwin-b20\H-i586-cygwin32\bin to -/bin, if there was a mount from that Win32 path to -that POSIX path) when a Cygwin process first starts. +converted from Win32 format to POSIX format (e.g. from +c:\cygwin\bin to /bin, if +there was a mount from that Win32 path to that POSIX path) when a Cygwin +process first starts. Symbolic links can also be used to map Win32 pathnames to POSIX. For example, the command @@ -339,11 +305,11 @@ does not. In the same situation the function call filename.exe. The two files can be distinguished by examining their inodes, as demonstrated below. -C:\Cygnus\> ls * +C:\> ls * a a.exe b.exe -C:\Cygnus\> ls -i a a.exe +C:\> ls -i a a.exe 445885548 a 435996602 a.exe -C:\Cygnus\> ls -i b b.exe +C:\> ls -i b b.exe 432961010 b 432961010 b.exe If a shell script myprog and a program @@ -381,13 +347,13 @@ In the following example compare the behaviors of the bash built-in Using @pathname -/Cygnus$ echo 'This is "a long" line' > mylist -/Cygnus$ echo @mylist +bash$ echo 'This is "a long" line' > mylist +bash$ echo @mylist @mylist -/Cygnus$ /bin/echo @mylist +bash$ /bin/echo @mylist This is a long line -/Cygnus$ rm mylist -/Cygnus$ /bin/echo @mylist +bash$ rm mylist +bash$ /bin/echo @mylist @mylist -- cgit v1.2.3