Giter Site home page Giter Site logo

Comments (6)

earthbound19 avatar earthbound19 commented on July 17, 2024

For the umpteenth time I've discovered that sed / gsed (EDIT: but what about the cygwin version?) on windows inserts #@$! windows newlines, and that any stream-created variables with that must append this--as it says in this issue:

| tr -d '\15\32'

(removes windows newline)

from _ebdev.

earthbound19 avatar earthbound19 commented on July 17, 2024

python strings passed via argsparse are mucky on windows. solved with stringVariable.rstrip() re a genius breath yonder

from _ebdev.

earthbound19 avatar earthbound19 commented on July 17, 2024

Investigate whether msys2 tools don't cause CRLF (control linefeed / windows newline) problems?

OR per updated issue note (first sentence).

from _ebdev.

earthbound19 avatar earthbound19 commented on July 17, 2024

the sed.exe that ships with MSYS2 does not cause this issue. It's 100% an issue with Cygwin's sed.exe. Witnessed in fixing a bug manifest on Windows in hexplt2ppm.sh (it produced wrong colors via Gygwin sed.exe (hax renamed to gsed.exe by me), and did not produce the issue with MSYS2 sed.exe (hax renamed to gsed.exe by me).

Dumping Cygwin sed. DELETE the blankety-blank file after install unless/until migration to MSYS2 toolchain.

from _ebdev.

earthbound19 avatar earthbound19 commented on July 17, 2024

Updated OP with checklist and progress of checklist.

from _ebdev.

earthbound19 avatar earthbound19 commented on July 17, 2024

But this may be a more efficient way to remove windows newlines if you must; test before using:

re: https://stackoverflow.com/a/19347380/1397555
variable=${variable//[$'\t\r\n']}

from _ebdev.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.