daniel-sc / bash-shell-to-bat-converter

Converter for bash shell scripts to windows batch files.
https://daniel-sc.github.io/bash-shell-to-bat-converter
MIT License
229 stars 45 forks source link

the `cat EOF` problem #59

Open shadichy opened 1 year ago

shadichy commented 1 year ago

cat EOF is a method to write text to file that allows line breaks passing

yes I can replace it with hundreds of echo lines, but this method is bruh and time-wasting, and obviously cat EOF is the fastest and easiest way to write large amount of text to file

daniel-sc commented 1 year ago

@shadichy do you have an idea what the expected output should be? A quick search on my side was not really conclusive - see e.g. https://stackoverflow.com/questions/1015163/heredoc-for-windows-batch

shadichy commented 1 year ago

@daniel-sc yet i have no idea

btw did you have a look at this question?

daniel-sc commented 1 year ago

Hm - but this as well screams "there is no simple / straight forward / general way". Furthermore the upstream parser that is used in this project does not support this - see vorpaljs/bash-parser/issues/52 (it might be possible after doing #64 - but not sure if this ever ships..)

Of course I'd be open to any contribution :)