Description
In the second example below, a trailing blank/ white space is inserted after first opening '(' symbol, this is indicated through '^'. The expectation is like in first example above. This seems to happen when opening a subshell first after opening brackets of another subshell.
shfmt is called without any parameters in this case.
#!/bin/bash
# OK - no blank
(
cd .
(echo "Hello world!")
)
# nok - blank ^ after first (
(^
(echo "Hello world!")
)
Activity