allenap / shell-quote

A Rust library for shell quoting strings, e.g. for interpolating into a Bash script. This is not as simple as most people think!
Apache License 2.0
5 stars 2 forks source link

Escape newlines for fish #19

Closed allenap closed 3 months ago

allenap commented 3 months ago

For fish the quote result might contain newlines. But for other shells the quote result is always a single line. Should we change it to also keep the quote result on a single line?

Originally posted by @kxxt in https://github.com/allenap/shell-quote/issues/9#issuecomment-2195881818