Closed leagris closed 5 years ago
Thanks for the report @leagris . This repo is for the atom plugin, but it looks like your bug is with shfmt itself. Could you please report this issue on the mvdav/sh repository?
Reported here: https://github.com/mvdan/sh/issues/373
format-shell version 2.1.6 fails with:
On the code below
because it does not recognize the
~
as the binary negation operator in a numerical expressionSee: Bash Man-Page / 6.5 Shell Arithmetic
Here is a practical use of the negation operator to compute a CRC32 checksum in pure Bash without a lookup table, that is causing shell-format to choke on the operator