Skip to content

Commit

Permalink
cmd/shfmt: show broken behavior in test for #1102
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdan committed Oct 19, 2024
1 parent fa9120a commit 21e38aa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmd/shfmt/testdata/script/editorconfig.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@ exec shfmt

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

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

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

0 comments on commit 21e38aa

Please sign in to comment.