From 21e38aa0fcf7adddbfb3deb8bc0c49db19490d43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Sat, 19 Oct 2024 15:10:01 +0100 Subject: [PATCH] cmd/shfmt: show broken behavior in test for #1102 --- cmd/shfmt/testdata/script/editorconfig.txtar | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cmd/shfmt/testdata/script/editorconfig.txtar b/cmd/shfmt/testdata/script/editorconfig.txtar index 7c829a77..09be42be 100644 --- a/cmd/shfmt/testdata/script/editorconfig.txtar +++ b/cmd/shfmt/testdata/script/editorconfig.txtar @@ -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.