psc-package icon indicating copy to clipboard operation
psc-package copied to clipboard

`psc-package sources` command hard to use on windows

Open chexxor opened this issue 6 years ago • 0 comments

$ purs compile -o output $(psc-package sources) 'src/**/*.purs' will fail because psc-package sources outputs "" directory separator on windows, but my bash shell (mingw) only supports "/" dir separator. Also, I can't do subcommands like $(...) on a normal windows shell.

I'd guess psc-package is using a library which sees the host OS is windows so outputs in windows format, but psc-package can't use it because it doesn't parse it into a canonical cross-platform file path format.

One suggestion was to pipe it to sed before sending it to purs, but...

$ purs compile -o output $(psc-package sources | sed 's#\\#/#g') 'src/**/*.purs'
bash: /c/Users/chexxor/bin/purescript-0.11.7/purs: Argument list too long

chexxor avatar Apr 19 '18 18:04 chexxor