utility

shfmt

Display formatting differences without rewriting. Tool unavailable locally; command not executed.

Formal Syntax & Structure

bash syntaxbash
shfmt -d demo.sh

Return Value

exit status

Consult the installed version documentation; not locally verified.

Working Example

Example Snippetbash
shfmt -d demo.sh
Bash Reference