bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Handling files with CRLF line ending


From: Yair Lenga
Subject: Re: Handling files with CRLF line ending
Date: Tue, 6 Dec 2022 10:09:27 -0500

 Valid question.

I believe a major goal of bash will be to cross operate with other tools.
In this case, being able to read text files generated by python, when
running under WSL, seems like something bash should do.

On the question of minimal changes. I believe many bash users (some are not
hard core developers, just devops) are tasked with transfering existing
solutions to WSL. I am not aware of hard data, but I believe those are
underrepresented in this forum.

I admit no hard data to support any of those.

On Mon, Dec 5, 2022, 15:36 Chet Ramey <chet.ramey@case.edu> wrote:

> On 12/3/22 8:53 AM, Yair Lenga wrote:
> > Thank you for suggestions. I want to emphasize: I do not need help in
> > striping the CR from the input files - it's simple.
> >
> > The challenge is executing a working bash/python solution from Linux on
> > WSL, with MINIMAL changes to the scripts.
>
> That's certainly your priority. But is it a compelling enough reason to
> change bash to accomplish it?
>
> It seems easy enough to set up a pipeline on WSL to provide input in the
> form the script authors assume.
>
>
> --
> ``The lyf so short, the craft so long to lerne.'' - Chaucer
>                  ``Ars longa, vita brevis'' - Hippocrates
> Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/
>
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]