diff options
author | David Starks-Browning <starksb@ebi.ac.uk> | 2000-10-24 16:43:50 +0000 |
---|---|---|
committer | David Starks-Browning <starksb@ebi.ac.uk> | 2000-10-24 16:43:50 +0000 |
commit | 902047f40e05387306ddb85c7d4e2c75ce56952c (patch) | |
tree | ef21971a16c51ca957a2c145959d804aefc3d1fd /winsup/doc | |
parent | 77da118b99e1068f0d9fbf3c2c05a00624ad880b (diff) | |
download | newlib-902047f40e05387306ddb85c7d4e2c75ce56952c.zip newlib-902047f40e05387306ddb85c7d4e2c75ce56952c.tar.gz newlib-902047f40e05387306ddb85c7d4e2c75ce56952c.tar.bz2 |
Update "How can I access other drives?" entry with details about --change-cygdrive-prefix
and some other minor changes.
Diffstat (limited to 'winsup/doc')
-rw-r--r-- | winsup/doc/how-using.texinfo | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/winsup/doc/how-using.texinfo b/winsup/doc/how-using.texinfo index 6dc2b99..a2f7861 100644 --- a/winsup/doc/how-using.texinfo +++ b/winsup/doc/how-using.texinfo @@ -182,18 +182,18 @@ backward-slashes ('\'). (But see the warning below!) This maps in the obvious way to the Windows path, but will be converted internally to use the Cygwin path, following mounts (default or explicit). For example: @example - bash-2.03$ cd C:/Windows - bash-2.03$ pwd + bash$ cd C:/Windows + bash$ pwd /cygdrive/c/Windows @end example and @example - bash-2.03$ cd C:/cygwin - bash-2.03$ pwd + bash$ cd C:/cygwin + bash$ pwd / @end example -for a default setup. (You could also use backward-slashes in the -Windows path, but these would have to be escaped from the shell.) +for a default setup. You could also use backward-slashes in the +Windows path, but these would have to be escaped from the shell. @strong{Warning:} There is some ambiguity in going from a Windows path to the posix path, because different posix paths, through different @@ -209,9 +209,12 @@ You can avoid the ambiguity of Windows paths, and avoid typing bash$ mount c:/ /c bash$ ls /c @end example +Then @samp{/cygdrive/c/Windows} becomes @samp{/c/Windows} which is a +little less typing. + Note that you only need to mount drives once. The mapping is kept in the registry so mounts stay valid pretty much indefinitely. -You can only get rid of them with umount (or the registry editor). +You can only get rid of them with umount, or the registry editor. The '-b' option to mount mounts the mountpoint in binary mode ("binmode") where text and binary files are treated equivalently. This @@ -221,6 +224,13 @@ flags are missing from open calls. It is also the setting for /, new mounts is text mode ("textmode"), which is also the mode for all "cygdrive" mounts. +You can change the default @samp{cygdrive} prefix and whether it is +binmode or textmode using the @code{mount} command. For example, +@example + bash$ mount -b --change-cygdrive-prefix cygdrive +@end example +will change all @code{/cygdrive/...} mounts to binmode. + @subsection How can I copy and paste into Cygwin console windows? Under Windows NT, open the properties dialog of the console window. |