delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/03/18/08:45:28

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,RCVD_IN_DNSWL_LOW,TW_YG
X-Spam-Check-By: sourceware.org
Message-ID: <4D8353B6.7060605@cwilson.fastmail.fm>
Date: Fri, 18 Mar 2011 08:44:38 -0400
From: Charles Wilson <cygwin AT cwilson DOT fastmail DOT fm>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666
MIME-Version: 1.0
To: Cygwin Mailing List <cygwin AT cygwin DOT com>
Subject: Re: ITP dos2unix 5.2.1-1
References: <4D7FE2A7 DOT 8080409 AT xs4all DOT nl> <4D7FE57A DOT 4020903 AT redhat DOT com> <4D806DCF DOT 5090803 AT xs4all DOT nl> <4D80C0B8 DOT 8090603 AT cwilson DOT fastmail DOT fm> <4D80CEB4 DOT 7090005 AT xs4all DOT nl> <20110316154913 DOT GA18995 AT ednor DOT casa DOT cgf DOT cx> <4D80DEAF DOT 6020307 AT xs4all DOT nl> <4D810FAF DOT 6040609 AT t-online DOT de> <20110316193249 DOT GA15365 AT ednor DOT casa DOT cgf DOT cx> <4D8117FD DOT 40507 AT cwilson DOT fastmail DOT fm> <20110316201821 DOT GA773 AT ednor DOT casa DOT cgf DOT cx> <4D812DBE DOT 1090607 AT cwilson DOT fastmail DOT fm> <4D81CED1 DOT 9050601 AT xs4all DOT nl> <4D820D62 DOT 4030403 AT cwilson DOT fastmail DOT fm> <4D821D89 DOT 5020105 AT xs4all DOT nl> <4D823D92 DOT 1000600 AT cwilson DOT fastmail DOT fm> <4D826761 DOT 5030302 AT xs4all DOT nl> <4D826A52 DOT 8090009 AT redhat DOT com> <4D8270BB DOT 9010608 AT cwilson DOT fastmail DOT fm> <4D830012 DOT 5010000 AT xs4all DOT nl>
In-Reply-To: <4D830012.5010000@xs4all.nl>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 3/18/2011 2:47 AM, Erwin Waterlander wrote:
> I will create a branch for cygwin. I think that for temporary and
> redundant options it may be better  to silently accept them and not
> document them.

We are still not communicating.

I do NOT propose that the new options -- whether you call the redundant
or not -- be temporary or cygwin specific.  I propose that they be
adopted, wholesale, for all platforms.  I think the --follow option is a
valuable alternate behavior that is different and distinct from anything
the current option set allows.

I believe --no-follow and --safe, being opposites of the new option and
and existing option, respectively, are necessary for proper CLI design.
 Just like rm has both -i and -f.

The ONLY part that I propose be temporary, and /NOT/ be committed to any
source repository anyway, and simply carried as part of the cygwin
packaging until no longer needed, is the bit that switches the default
behavior on cygwin from --no-follow (as everywhere else) to --follow.

> Existing scripts will not break, but usage of temporary
> options is discouraged and it saves work on translations. Usage of such
> an option may even trigger a warning that it will be removed in a future
> release. Then people have time to adapt.

Since I propose that the new options all stay, and propagate, I realize
this means extra translation work.  I'm not qualified for that, but I
CAN cut-n-paste in all the translations those that correspond to new
lines of code which were themselves cut-n-pasted from existing lines of
code (several of the "new" error messages are cut-n-paste like this).  I
didn't have time to do this last night, and I can't help with the
entirely new tranlatable strings, but I figured code first, .pot files
later.

In discussing these:
	01-avoid-hardlink-exist-error.patch
	02-cygwin-defines-win32-but-isnt.patch
	03-add--safe-option.patch
	04-add-follow-no-follow--infile-only.patch
	05-rationalize-logic-flow.patch
	06-add-ResolveSymbolicLink-function.patch
	07-support-follow-no-follow--outfile.patch
	08-use-canonicalize-file-name-glibc24-cygwin17.patch
ignore the fact that some were developed to mimic cygutils' existing
behavior.

Some are just plan bugfixes (01, 02).

One (05) is an attempt to make the code flow in *NewFile() and
*OldFile() similar (and bugfix: set error retval even when Quiet, if
there's an error).

The rest (03, 04, 06-08) add new and IMO valuable options to the
dos2unix package without changing current behavior.

Don't bother with a special cygwin-only branch.  Let's just discuss
these patches, for trunk, on their own merits.

BTW, do you have a more appropriate forum for those discussions, than
this mailing list?  A dedicated list or something?

> Useful options will end up in trunk. In the end there will be a single
> source for Cygwin and Linux, and both will take advantage of it.

As I said, I see no need for a branch, that differs from trunk only by:
-  pFlag->Follow = 0;
+  pFlag->Follow = 1;
in two places.

>> With regards to the d2u/u2d aliases, for now I'd just modify the cygport
>> script to create those as hardlinks, and not modify or patch the package
>> source at all.
>>
>> Standby...
> 
> Do you want d2u/u2d to run conv, or the new dos2unix/unix2dos?

The new versions.

--
Chuck

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019