This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Re: YACP
- From: Christopher Faylor <cgf at redhat dot com>
- To: cygwin-patches at cygwin dot com
- Date: Thu, 20 Jun 2002 20:35:43 -0400
- Subject: Re: YACP
- References: <Pine.CYG.4.44.0206201816310.96-200000@iocc.com>
- Reply-to: cygwin-patches at cygwin dot com
On Thu, Jun 20, 2002 at 06:17:21PM -0500, Joshua Daniel Franklin wrote:
>YACP (Yet Another Cygpath Patch)
>
>The major change that this make is setting the UNIXy output to be the
>default. This was already true for the -ADHPSW options. If this is a
>bad idea for some reason unknown to me, there were only 3 lines changed
>to do it. (Everything still works with --unix, of course.)
>
>Also, thinking about this new --type TYPE option, I was wondering what
>exactly the 'dos' type did. So I look at the code:
>
>- if (strcasecmp (windows_format_arg, "mixed") == 0)
>- mixed_flag = 1;
>- else if (strcasecmp (windows_format_arg, "dos") == 0)
>- /* nothing */;
>- else
>- usage (stderr, 1);
>- break;
>
>Ah! It does /* nothing */, I see. So also this patch REMOVES the
>-t, --type option and changes it to -m, --mixed instead. This is hopefully
>easier to understand.
Actually, there was another option but it was obsolete so I removed it.
I figured that the --type option would provide the capability for other
formats for filenames in the future, like //?/ or whatever.
cgf
- References:
- YACP
- From: Joshua Daniel Franklin