False E011 positive

Bug #1616013 reported by Ville Skyttä
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bash8
New
Undecided
Unassigned

Bug Description

$ echo 'if [ "$foo" ]; then echo hello; fi' > t.sh
$ python -m bashate.bashate t.sh
[E] E011: Then keyword is not on same line as if or elif keyword: 'if [ "$foo" ]; then echo hello; fi'
 - t.sh : L1
1 bashate error(s) found

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.