Description: New shfmt does not accept empty while loop. Fix the same. Author: Nilesh Patra Last-Update: 2026-07-31 --- a/shsprintf/shsprintf_test.go +++ b/shsprintf/shsprintf_test.go @@ -93,7 +93,7 @@ format: `#! /bin/bash end=$((SECONDS+%d)) -while [ $SECONDS -lt $end ]; do +while [ $SECONDS -lt $end ]; do true done`, replacements: []any{ 3, --- a/shtemplate/shtemplate_test.go +++ b/shtemplate/shtemplate_test.go @@ -67,7 +67,7 @@ tmplText: `#! /bin/bash end=$((SECONDS+{{.wait}})) -while [ $SECONDS -lt $end ]; do +while [ $SECONDS -lt $end ]; do true done`, replacements: map[any]any{ "wait": 3, @@ -136,7 +136,7 @@ { tmplText: "echo $(({{ (StructuralData .addressee) }}))", replacements: map[any]any{ - "addressee": "./command", + "addressee": "test", }, err: nil, },