Closed allan2 closed 2 years ago
I don't think we can do that; those are different and valid programs. For instance:
$ a() { echo "hello!" "$@"; }
$ a = 5
hello! = 5
$ echo $a
$ a=5
$ echo $a
5
shfmt
is a code formatter, so it can't do any automated changes that will change the behavior of programs, because those could easily break user's programs.
Closing as per the above.
This is a feature request to format surrounding whitespace in variable assignment.
Example:
Format
as