Open SamuelMarks opened 1 month ago
i created this solution before duckscript, but with duckscript, why use this? and if you must, you can always force a certain conversion:
#provide custom windows command for specific shell command
complex_bash_command --flag1 value2 # shell2batch: complex_windows_command /flag10 windows_value
@sagiegurari Oh I thought with echo
being such a useful and often builtin
command maybe the expectation are that it would be handled specially by this library.
So duckscript is recommended over @shell
? - Ok will rewrite in duckscript.
i would love echo to work well but dodnt get whats the recommendation/proposal
Describe The Bug
Quoting for piping into
psql
doesn't work cross-platform.To Reproduce
For example this works on Windows:
And this works on Linux:
(but the Linux variant doesn't work on Windows; and the Windows variant doesn't work on Linux)
For example, run
docker run -p 5432:5432 -e POSTGRES_USER=rest_user -e POSTGRES_PASSWORD=rest_pass -e POSTGRES_DB=rest_db postgres:alpine
and add this to yourenv
:Then run the software and you'll get:
Windows
(unquoted
echo
)(quoted
echo
)Linux
(quoted
echo
)(unquoted
echo
)