bmatzelle / gow

Unix command line utilities installer for Windows.
https://github.com/bmatzelle/gow/wiki
6.55k stars 363 forks source link

default delimiter for directories and sed? #263

Open oldpink opened 3 years ago

oldpink commented 3 years ago

I realize that GOW is no longer being maintained, but I might actually have some real world use for it, but there is a rather annoying issue when using my Bash scripts that primarily use sed to process streams of data using mostly the '/' character as the delimiter on the lines that invoke sed. When I use the unmodified scripts, I get this: sed.exe: -e expression #1, char 1: unknown command: C' sed.exe: -e expression #1, char 1: unknown command:C' sed.exe: -e expression #1, char 1: unknown command: `C'

I have done some looking around that seems to indicate that this is related to the version of Bash used in GOW ported to deal with Windows-style directory delimiters ("\"), so I was able to get my scripts by replacing all "/" with a different delimiter. However, I still would prefer to use my unmodified scripts, but I don't know how to do that, unless I can either 1) get the source code for the version of Bash used, somehow figure out how to modify the source to change this, then recompile, or 2) use (assuming one is even available) some kind of command-line switch or variable to change this behavior on demand. Does anyone know of a way to modify this behavior, preferably with the second option? Thanks