Comments (6)
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.
python strings passed via argsparse are mucky on windows. solved with stringVariable.rstrip()
re a genius breath yonder
from _ebdev.
Investigate whether msys2 tools don't cause CRLF (control linefeed / windows newline) problems?
OR per updated issue note (first sentence).
from _ebdev.
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.
Updated OP with checklist and progress of checklist.
from _ebdev.
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)
- better palette path find in scripts HOT 1
- fix line join failure case in fountain2fountain.sh
- fix inconsistent color list scripts HOT 2
- fix `wrap` render issue in `fountain2pdf.sh` HOT 1
- color_growth.py: breaks on preset with double space
- Python color sort script(s?) issue
- extractIMGlayersIM.sh extracts layers not matching original image size HOT 2
- test all graphicsmagick [?] scripts and fix as necessary HOT 1
- add common social media required pix format to all video producing files
- move /admin subfolder to another repository and remove from git history
- support comments for .hexplt files in all scripts that use them HOT 3
- consistentize match/pair up/down nomenclature
- ensure all palette creation and manipulation scripts do unix line endings
- ensure `hexplt2ppm.sh` works with hexplt format files that have comments
- fix IFS in iteration / array create where path names could have spaces
- reformatHexPalette.sh: 46x46 hexplt reformats wrong? HOT 2
- make nomenclature of "palette" or "hexplt" consistent
- rename all scripts that have `IMG` etc. in their file name to `image` (make consistent)
- recreate or find missing script all_data_bend_type2PPMglitchArt.sh
- Are `BWsvgRandomColorFill.sh` and `SVGrandomColorReplace.sh` redundant? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from _ebdev.