From 45b80bb4ce0a6053bb3f2ce862eccf26cac96660 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Tue, 19 Sep 2000 01:26:45 +0000 Subject: * cygpath.cc: Add new options: -s and -i. * utils.sgml: Document the new options. --- winsup/utils/utils.sgml | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) (limited to 'winsup/utils/utils.sgml') 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. cygpath -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 The cygpath program is a utility that @@ -87,7 +89,9 @@ here. indicate whether you want a conversion from Windows to UNIX (POSIX) format (-u) or a conversion from UNIX (POSIX) to Windows format (-w). You must give exactly -one of these. To give neither or both is an error. +one of these. To give neither or both is an error. Use the +-s option in combination with the -w + option to convert to Windows short form. The -p 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 -p you are instructing cygpath to convert between these formats. +The -i 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. + Example cygpath usage #!/bin/sh for i in `echo *.exe | sed 's/\.exe/cc/'` do - notepad `cygpath -w $i` + notepad "`cygpath -w $i`" done -- cgit v1.2.3