E004 false positive when last line is subshell with comment
Bug #2066083 reported by
Roman
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bash8 |
New
|
Undecided
|
Unassigned |
Bug Description
Reproducer
$ xxd a.sh
00000000: 2871 2920 230a (q) #.
$ bashate --version
bashate: 2.1.1
$ bashate ./a.sh
./a.sh:1:1: E004 File did not end with a newline
1 bashate error(s) found
Removing comment or subshell fixes error. Adding another newline also fixes it, so you end up with two newlines.
To post a comment you must log in.