Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: "Hannu E K Nevalainen" To: Subject: RE: [PATCH] : make cygpath use multiple filename arguments Date: Tue, 14 Oct 2003 17:15:49 +0200 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0005_01C39276.D0915ED0" X-Priority: 3 (Normal) X-MSMail-Priority: Normal In-Reply-To: <3F17FE02.6070307@fangorn.ca> Importance: Normal X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Note-from-DJ: This may be spam ------=_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--