A few fixes to winsup/utils/cygpath.cc

Schaible, Jorg Joerg.Schaible@gft.com
Mon Jan 14 00:30:00 GMT 2002


Hi Chris,

just an additional minor patch for Jonathtan's change in cygpath.cc, that
keeps some consistency for -i option:

/src/winsup/utils> cygpath -w > /dev/null 2>&1; echo $?
1
/src/winsup/utils> cygpath -wi > /dev/null 2>&1; echo $?
0
/src/winsup/utils> cygpath -w "" > /dev/null 2>&1; echo $?
1
/src/winsup/utils> cygpath -wi "" > /dev/null 2>&1; echo $?
1    <========== should be 0, too.
/src/winsup/utils> cygpath -wp > /dev/null 2>&1; echo $?
1
/src/winsup/utils> cygpath -wpi > /dev/null 2>&1; echo $?
0
/src/winsup/utils> cygpath -wp "" > /dev/null 2>&1; echo $?
0
/src/winsup/utils> cygpath -wpi "" > /dev/null 2>&1; echo $?
0


========

2002-01-14  Joerg Schaible <joerg.schaible@gmx.de>

	* cygpath.cc (doit): Empty file ignored using option -i

========

Regards,
Jorg

>-----Original Message-----
>From: Christopher Faylor [mailto:cgf@redhat.com]
>Sent: Wednesday, December 26, 2001 6:46 PM
>To: cygwin-patches@cygwin.com
>Subject: Re: A few fixes to winsup/utils/cygpath.cc
>
>
>On Wed, Dec 26, 2001 at 12:40:12PM -0500, Jonathan Kamens wrote:
>>2001-12-26  Jonathan Kamens  <jik@curl.com>
>>
>>	* cygpath.cc (doit): Detect and warn about an empty 
>path.  Detect
>>	and warn about errors converting a path.
>>	(main): Set prog_name correctly -- don't leave an extra slash or
>>	backslash at the beginning of it.
>
>Applied.  Thanks.
>
>cgf
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygpath.cc-patch
Type: application/octet-stream
Size: 315 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20020114/f38b3c3a/attachment.obj>


More information about the Cygwin-patches mailing list