public inbox for cygwin-talk@cygwin.com
 help / color / mirror / Atom feed
* Re: Bash 3.1.17(8) CR/LF problem
       [not found] ` <011b01c6e26f$3abdead0$a501a8c0@CAM.ARTIMI.COM>
@ 2006-09-27 21:50   ` mwoehlke
  2006-09-27 23:40     ` Igor Peshansky
  2006-09-29 17:15     ` Williams, Gerald S (Jerry)
  0 siblings, 2 replies; 5+ messages in thread
From: mwoehlke @ 2006-09-27 21:50 UTC (permalink / raw)
  To: cygwin-talk

Dave Korn wrote:
> On 27 September 2006 20:42, Malcolm Nixon wrote:
>>     * Some detect the change to <LF> as changes require manual merging.
> 
>   What, on lines that you /haven't/ edited locally?  That's just a bug.

I assume he meant 'if you d2u them'.

>>     * Some translate files to a "Local" format (CR/LF on Windows).
> 
>   FCOL, what on earth does an rcs think it's playing at, tampering with your
> data?  Any rcs that doesn't give you back exactly what you put into it is just
> plain buggy.  Nobody asked for a "automatically mangle my data whether I want
> you to or not" feature.

Anyone that has ever had both UNIX and Windows developers working on a 
source tree has had a use for such a feature. Some Windows editors 
(notepad) don't play nice with UNIX line endings, and some UNIX editors 
don't play nice with Windows line endings (more often, mixed endings 
cause problems). Oh, and then there are Mac line endings, too.

It's useful to have the rcs give you text files with native line 
endings. The rcm might then expects the file to stay this way (see 
previous bullet), and will translate it back for storage in the repo. 
Although you're right that this should never be behavior you can't turn off.

OTOH, we all know what the problem is; Microsoft's idiotic decisions to 
Be Different. Thanks to that we have abominations like "ftp 'text' 
mode". :-)

>> I think the bigger issue here is that this arbitrary change will break
>> a "significant" number of existing scripts. 
> 
>   YM a "significant" number of /broken/ scripts.  Try running any of them on a
> linux box and see what you get.

Or perfectly valid scripts managed by an unfortunate rcs that insists on 
u2d'ing them on the way down.

-- 
Matthew
The hippo made me do it! What? What do you mean you can't see the hippo?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Bash 3.1.17(8) CR/LF problem
  2006-09-27 21:50   ` Bash 3.1.17(8) CR/LF problem mwoehlke
@ 2006-09-27 23:40     ` Igor Peshansky
  2006-09-27 23:48       ` mwoehlke
  2006-09-29 17:15     ` Williams, Gerald S (Jerry)
  1 sibling, 1 reply; 5+ messages in thread
From: Igor Peshansky @ 2006-09-27 23:40 UTC (permalink / raw)
  To: The Cygwin-Talk Maiming List

On Wed, 27 Sep 2006, mwoehlke wrote:

> Dave Korn wrote:
> > On 27 September 2006 20:42, Malcolm Nixon wrote:
> > >     * Some detect the change to <LF> as changes require manual merging.
> >
> >   What, on lines that you /haven't/ edited locally?  That's just a bug.
>
> I assume he meant 'if you d2u them'.
>
> > >     * Some translate files to a "Local" format (CR/LF on Windows).
> >
> >   FCOL, what on earth does an rcs think it's playing at, tampering
> > with your data?  Any rcs that doesn't give you back exactly what you
> > put into it is just plain buggy.  Nobody asked for a "automatically
> > mangle my data whether I want you to or not" feature.
>
> Anyone that has ever had both UNIX and Windows developers working on a
> source tree has had a use for such a feature. Some Windows editors
> (notepad) don't play nice with UNIX line endings, and some UNIX editors
> don't play nice with Windows line endings (more often, mixed endings
> cause problems). Oh, and then there are Mac line endings, too.
>
> It's useful to have the rcs give you text files with native line
> endings. The rcm might then expects the file to stay this way (see
> previous bullet), and will translate it back for storage in the repo.
> Although you're right that this should never be behavior you can't turn
> off.
>
> OTOH, we all know what the problem is; Microsoft's idiotic decisions to
> Be Different. Thanks to that we have abominations like "ftp 'text'
> mode". :-)
>
> > > I think the bigger issue here is that this arbitrary change will break
> > > a "significant" number of existing scripts.
> >
> >   YM a "significant" number of /broken/ scripts.  Try running any of
> > them on a linux box and see what you get.
>
> Or perfectly valid scripts managed by an unfortunate rcs that insists on
> u2d'ing them on the way down.

This is all academic, as hosting the repository on a textmode mount will
solve his problem...
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha@cs.nyu.edu | igor@watson.ibm.com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Bash 3.1.17(8) CR/LF problem
  2006-09-27 23:40     ` Igor Peshansky
@ 2006-09-27 23:48       ` mwoehlke
  2006-09-28  1:28         ` Igor Peshansky
  0 siblings, 1 reply; 5+ messages in thread
From: mwoehlke @ 2006-09-27 23:48 UTC (permalink / raw)
  To: cygwin-talk

Igor Peshansky wrote:
> On Wed, 27 Sep 2006, mwoehlke wrote:
> 
>> Dave Korn wrote:
>>> On 27 September 2006 20:42, Malcolm Nixon wrote:
>>>>     * Some detect the change to <LF> as changes require manual merging.
>>>   What, on lines that you /haven't/ edited locally?  That's just a bug.
>> I assume he meant 'if you d2u them'.
>>
>>>>     * Some translate files to a "Local" format (CR/LF on Windows).
>>>   FCOL, what on earth does an rcs think it's playing at, tampering
>>> with your data?  Any rcs that doesn't give you back exactly what you
>>> put into it is just plain buggy.  Nobody asked for a "automatically
>>> mangle my data whether I want you to or not" feature.
>> Anyone that has ever had both UNIX and Windows developers working on a
>> source tree has had a use for such a feature. Some Windows editors
>> (notepad) don't play nice with UNIX line endings, and some UNIX editors
>> don't play nice with Windows line endings (more often, mixed endings
>> cause problems). Oh, and then there are Mac line endings, too.
>>
>> It's useful to have the rcs give you text files with native line
>> endings. The rcm might then expects the file to stay this way (see
>> previous bullet), and will translate it back for storage in the repo.
>> Although you're right that this should never be behavior you can't turn
>> off.
>>
>> OTOH, we all know what the problem is; Microsoft's idiotic decisions to
>> Be Different. Thanks to that we have abominations like "ftp 'text'
>> mode". :-)
>>
>>>> I think the bigger issue here is that this arbitrary change will break
>>>> a "significant" number of existing scripts.
>>>   YM a "significant" number of /broken/ scripts.  Try running any of
>>> them on a linux box and see what you get.
>> Or perfectly valid scripts managed by an unfortunate rcs that insists on
>> u2d'ing them on the way down.
> 
> This is all academic, as hosting the repository on a textmode mount will
> solve his problem...

That assumes his repo is on a Windows machine... I don't think that was 
specified. Plus, wouldn't that assume that the rcsd is a Cygwin app?

Or did you mean run the scripts from a textmode mount?

-- 
Matthew
The hippo made me do it! What? What do you mean you can't see the hippo?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Bash 3.1.17(8) CR/LF problem
  2006-09-27 23:48       ` mwoehlke
@ 2006-09-28  1:28         ` Igor Peshansky
  0 siblings, 0 replies; 5+ messages in thread
From: Igor Peshansky @ 2006-09-28  1:28 UTC (permalink / raw)
  To: The Cygwin-Talk Maiming List

On Wed, 27 Sep 2006, mwoehlke wrote:

> Igor Peshansky wrote:
> > On Wed, 27 Sep 2006, mwoehlke wrote:
> >
> > > Dave Korn wrote:
> > > > On 27 September 2006 20:42, Malcolm Nixon wrote:
> > > > >     * Some detect the change to <LF> as changes require manual
> > > > > merging.
> > > >   What, on lines that you /haven't/ edited locally?  That's just a bug.
> > > I assume he meant 'if you d2u them'.
> > >
> > > > >     * Some translate files to a "Local" format (CR/LF on Windows).
> > > >   FCOL, what on earth does an rcs think it's playing at, tampering
> > > > with your data?  Any rcs that doesn't give you back exactly what you
> > > > put into it is just plain buggy.  Nobody asked for a "automatically
> > > > mangle my data whether I want you to or not" feature.
> > > Anyone that has ever had both UNIX and Windows developers working on a
> > > source tree has had a use for such a feature. Some Windows editors
> > > (notepad) don't play nice with UNIX line endings, and some UNIX editors
> > > don't play nice with Windows line endings (more often, mixed endings
> > > cause problems). Oh, and then there are Mac line endings, too.
> > >
> > > It's useful to have the rcs give you text files with native line
> > > endings. The rcm might then expects the file to stay this way (see
> > > previous bullet), and will translate it back for storage in the repo.
> > > Although you're right that this should never be behavior you can't turn
> > > off.
> > >
> > > OTOH, we all know what the problem is; Microsoft's idiotic decisions to
> > > Be Different. Thanks to that we have abominations like "ftp 'text'
> > > mode". :-)
> > >
> > > > > I think the bigger issue here is that this arbitrary change will break
> > > > > a "significant" number of existing scripts.
> > > >   YM a "significant" number of /broken/ scripts.  Try running any of
> > > > them on a linux box and see what you get.
> > > Or perfectly valid scripts managed by an unfortunate rcs that insists on
> > > u2d'ing them on the way down.
> >
> > This is all academic, as hosting the repository on a textmode mount will
> > solve his problem...
>
> That assumes his repo is on a Windows machine... I don't think that was
> specified. Plus, wouldn't that assume that the rcsd is a Cygwin app?
>
> Or did you mean run the scripts from a textmode mount?

Sorry, I misspoke (mistyped?).  I meant "keeping the local checkout of the
repository on a text mount".
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha@cs.nyu.edu | igor@watson.ibm.com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE:  Re: Bash 3.1.17(8) CR/LF problem
  2006-09-27 21:50   ` Bash 3.1.17(8) CR/LF problem mwoehlke
  2006-09-27 23:40     ` Igor Peshansky
@ 2006-09-29 17:15     ` Williams, Gerald S (Jerry)
  1 sibling, 0 replies; 5+ messages in thread
From: Williams, Gerald S (Jerry) @ 2006-09-29 17:15 UTC (permalink / raw)
  To: cygwin-talk

mwoehlke wrote:
> OTOH, we all know what the problem is; Microsoft's idiotic decisions
> to Be Different. Thanks to that we have abominations like "ftp 'text'
> mode". :-)

Ah, the folly of youth!

:-)

gsw

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-09-28 13:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <860934040609271241ib9c7486q60b651ac9b3d6c36@mail.gmail.com>
     [not found] ` <011b01c6e26f$3abdead0$a501a8c0@CAM.ARTIMI.COM>
2006-09-27 21:50   ` Bash 3.1.17(8) CR/LF problem mwoehlke
2006-09-27 23:40     ` Igor Peshansky
2006-09-27 23:48       ` mwoehlke
2006-09-28  1:28         ` Igor Peshansky
2006-09-29 17:15     ` Williams, Gerald S (Jerry)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).