Skip to content

Commit 21e38aa

Browse files
committed
cmd/shfmt: show broken behavior in test for #1102
1 parent fa9120a commit 21e38aa

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cmd/shfmt/testdata/script/editorconfig.txtar

+4-2
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@ exec shfmt
1212

1313
stdin stdin-filename-bash
1414
! exec shfmt -filename=foo_posix.sh
15-
stderr '^foo_posix.sh:.* arrays are a bash'
15+
# TODO: we didn't parse as bash!
16+
stderr '^foo_posix.sh:.* arrays are a bash.*parsed as bash via -ln=auto'
1617

1718
stdin stdin-filename-bash
1819
! exec shfmt -filename=${WORK}/foo_posix.sh
19-
stderr ^${WORK@R}/'foo_posix.sh:.* arrays are a bash'
20+
# TODO: we didn't parse as bash!
21+
stderr ^${WORK@R}/'foo_posix.sh:.* arrays are a bash.*parsed as bash via -ln=auto'
2022

2123
# Using a file path should use EditorConfig, including with the use of flags
2224
# like -l.

0 commit comments

Comments
 (0)