diff options
author | Christopher Faylor <me@cgf.cx> | 2000-09-19 01:26:45 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-09-19 01:26:45 +0000 |
commit | 45b80bb4ce0a6053bb3f2ce862eccf26cac96660 (patch) | |
tree | 62adcf62d08117ed47b5b1da2e40448e50ed6db4 /winsup/utils/utils.sgml | |
parent | a3ad8241788ba33ccdcc1ad247b03a940efc8ee8 (diff) | |
download | cygnal-45b80bb4ce0a6053bb3f2ce862eccf26cac96660.tar.gz cygnal-45b80bb4ce0a6053bb3f2ce862eccf26cac96660.tar.bz2 cygnal-45b80bb4ce0a6053bb3f2ce862eccf26cac96660.zip |
* cygpath.cc: Add new options: -s and -i.
* utils.sgml: Document the new options.
Diffstat (limited to 'winsup/utils/utils.sgml')
-rw-r--r-- | winsup/utils/utils.sgml | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/winsup/utils/utils.sgml b/winsup/utils/utils.sgml index 44d5301a4..fbf6686ce 100644 --- a/winsup/utils/utils.sgml +++ b/winsup/utils/utils.sgml @@ -64,15 +64,17 @@ or if you know what everything is already, just leave this out.</para> <sect2 id="cygpath"><title>cygpath</title> <screen> -Usage: cygpath [-p|--path] (-u|--unix)|(-w|--windows) filename +Usage: cygpath [-p|--path] (-u|--unix)|(-w|--windows [-s|--short-name]) filename cygpath [-v|--version] cygpath [-W|--windir|-S|--sysdir] - -u|--unix print UNIX form of filename - -w|--windows print Windows form of filename - -p|--path filename argument is a path - -v|--version print program version - -W|--windir print windows directory - -S|--sysdir print system directory + -u|--unix print UNIX form of filename + -w|--windows print Windows form of filename + -s|--short-name print Windows short form of filename + -p|--path filename argument is a path + -v|--version print program version + -W|--windir print Windows directory + -S|--sysdir print Windows system directory + -i|--ignore ignore missing filename argument </screen> <para>The <command>cygpath</command> program is a utility that @@ -87,7 +89,9 @@ here.</para> indicate whether you want a conversion from Windows to UNIX (POSIX) format (<literal>-u</literal>) or a conversion from UNIX (POSIX) to Windows format (<literal>-w</literal>). You must give exactly -one of these. To give neither or both is an error.</para> +one of these. To give neither or both is an error. Use the +<literal>-s</literal> option in combination with the <literal>-w +</literal> option to convert to Windows short form.</para> <para>The <literal>-p</literal> option means that you want to convert a path-style string rather than a single filename. For example, the @@ -96,12 +100,17 @@ colon-delimited in UNIX. By giving <literal>-p</literal> you are instructing <command>cygpath</command> to convert between these formats.</para> +<para>The <literal>-i</literal> option supresses the print out of the +usage message if no filename argument was given. It can be used in +make file rules converting variables to a proper format that may be +omitted.</para> + <example><title>Example cygpath usage</title> <screen> #!/bin/sh for i in `echo *.exe | sed 's/\.exe/cc/'` do - notepad `cygpath -w $i` + notepad "`cygpath -w $i`" done </screen> </example> |