Open LucasLarson opened 1 year ago
Thanks, this looks like a minor bug. If there's a way for the minify option to use fewer bytes and still result in valid shell, then it should probably be doing that. Happy to review a patch if someone is up for it.
shfmt --minify
is inserting a backslash\
and a newline if there’s an assignment following a closing parenthesis)
. For example:but then
but what I expected, and what would still work in zsh, bash, ksh, mksh, oksh, posh, yash, and dash, at least on my Mac using Homebrew installations – and still pass shellcheck – is: