utility
shfmt
Display formatting differences without rewriting. Tool unavailable locally; command not executed.
Formal Syntax & Structure
bash syntaxbash
shfmt -d demo.shReturn Value
exit status
Consult the installed version documentation; not locally verified.
Working Example
Example Snippetbash
shfmt -d demo.sh