mvdan / sh

A shell parser, formatter, and interpreter with bash support; includes shfmt
https://pkg.go.dev/mvdan.cc/sh/v3
BSD 3-Clause "New" or "Revised" License
7.1k stars 336 forks source link

location of do, then #905

Closed pan64 closed 2 years ago

pan64 commented 2 years ago

we have an option to specify the opening { of a function (-fn), but can we have a similar option to specify the location of do in loops and then

if condition
then
    something
fi
for (( something ))
do
    loop
done
mvdan commented 2 years ago

Duplicate of #721.