Closed mikeBashStuff closed 1 year ago
See https://github.com/mvdan/sh/issues/858#issuecomment-1155078373 and the last example under https://github.com/mvdan/sh#caveats. This is a known limitation. Closing as a duplicate of 858, because both are different examples of the same problem.
The following example is a valid Bash code:
However,
shfmt
(checked the latest v3.6.0 release as well) reports a following error: