Mail Archives: cygwin/2003/10/14/11:18:15
------=_NextPart_000_0005_01C39276.D0915ED0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
> From: Mark Blackburn
> Sent: Friday, July 18, 2003 4:03 PM
(Reply on original posting containing the patch)
I've found this patch to be a nice addition.
It seems not have "made it" into cygpath.cc, was there a cause for that?
/Hannu E K Nevalainen, B.Sc. EE - 59°16.37'N, 17°12.60'E
-- UTC+01, DST -> UTC+02 --
--END OF MESSAGE--
------=_NextPart_000_0005_01C39276.D0915ED0
Content-Type: application/octet-stream;
name="cygpath.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="cygpath.patch"
Index: utils/cygpath.cc
===================================================================
RCS file: /cvs/src/src/winsup/utils/cygpath.cc,v
retrieving revision 1.28
diff -u -p -r1.28 cygpath.cc
--- utils/cygpath.cc 12 Jun 2003 20:40:58 -0000 1.28
+++ utils/cygpath.cc 18 Jul 2003 13:59:37 -0000
@@ -675,11 +675,13 @@ main (int argc, char **argv)
if (output_flag)
dowin (o);
- if (optind != argc - 1)
+ if (optind > argc - 1)
usage (stderr, 1);
- filename = argv[optind];
- doit (filename);
+ for (int i=optind; argv[i]; i++) {
+ filename = argv[i];
+ doit (filename);
+ }
}
else
{
------=_NextPart_000_0005_01C39276.D0915ED0
Content-Type: text/plain; charset=us-ascii
--
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/
------=_NextPart_000_0005_01C39276.D0915ED0--
- Raw text -