configure has CRLF
Dave Silvia
dsilvia at mchsi.com
Mon Dec 4 09:35:47 PST 2006
Well, here's how that works. When you're in a cygwin shell and you write out a
file, the endings are set to LF or CRLF as you chose in the installation. It
does not go out and re-write existing files.
Now when you execute a script, if it has CRLF this is transparently changed to
LF during the execution only so that it doesn't error out. In essence, this is
exactly what Msys does.
So, if I write files from Windows, they have whatever setting my editor sets
them to (Vim/Gvim has this option). Cygwin will properly execute any file so
edited and leave it in the format I chose in the editor.
HTH:
thx,
Dave S.
wxMS_developers · Development with wxWidgets on MSWindows
http://tech.groups.yahoo.com/group/wxMS_developers/join
wxMS_developers RSS feed
http://rss.groups.yahoo.com/group/wxMS_developers/rss
wxWidgets Code Exchange
http://wxcodex.net/
-- On Mon, 4 Dec 2006 13:05:16 +0000 (UTC) Tim Stahlhut wrote --
> FYI:
>
> I just re-installed cygwin and I remember an option to pick which
> line ending(DOS or UNIX), but I don't remeber one that supported
> both.
>
> Tim S
>
>
> Dave Silvia wrote:
>
>> Actually, cygwin has an option to use mixed line endings. It's
>> available at installation. Not sure how you'd go about changing
>> it after the fact.
>>
>> In essence, if you pick this text only option (i.e. it only
>> applies to text files, like shell scripts) it will translate the
>> line endings to LF (UNIX convention) before trying to exec them.
>> On writes, it translates to CRLF (Windows convention). It's a
>> handy option if you have a favorite editor/word processor/etc
>> that you use across the board (although, most of these also have
>> line ending options).
>>
>> fyi:
>>
>> thx,
>> Dave S.
>
>
> --------------------------------------------------------------------
> - To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wx-users-help at lists.wxwidgets.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wx-users/attachments/20061204/75a29a4b/attachment.htm
More information about the wx-users
mailing list