aboutsummaryrefslogtreecommitdiffstats
path: root/t/chainlint/multi-line-nested-command-substitution.expect
diff options
context:
space:
mode:
authorEric Sunshine <sunshine@sunshineco.com>2021-12-13 01:30:54 -0500
committerJunio C Hamano <gitster@pobox.com>2021-12-13 14:15:29 -0800
commit5be30d0cd301f50e5f4dd992bc11ce75f457cf46 (patch)
tree61caace41b4929f5470b34d5767e7afa14544116 /t/chainlint/multi-line-nested-command-substitution.expect
parentchainlint.sed: drop unnecessary distinction between ?!AMP?! and ?!SEMI?! (diff)
downloadgit-5be30d0cd301f50e5f4dd992bc11ce75f457cf46.tar.gz
git-5be30d0cd301f50e5f4dd992bc11ce75f457cf46.zip
chainlint.sed: drop subshell-closing ">" annotation
chainlint.sed inserts a ">" annotation at the beginning of a line to signal that its heuristics have identified an end-of-subshell. This was useful as a debugging aid during development of the script, but it has no value to test writers and might even confuse them into thinking that the linter is misbehaving by inserting line-noise into the shell code it is validating. Moreover, its presence also potentially makes it difficult to reuse the chainlint self-test "expect" output should a more capable linter ever be developed. Therefore, drop the ">" annotation. Signed-off-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/chainlint/multi-line-nested-command-substitution.expect')
-rw-r--r--t/chainlint/multi-line-nested-command-substitution.expect10
1 files changed, 5 insertions, 5 deletions
diff --git a/t/chainlint/multi-line-nested-command-substitution.expect b/t/chainlint/multi-line-nested-command-substitution.expect
index 59b6c8b850..300058341b 100644
--- a/t/chainlint/multi-line-nested-command-substitution.expect
+++ b/t/chainlint/multi-line-nested-command-substitution.expect
@@ -3,16 +3,16 @@
x=$(
echo bar |
cat
->> ) &&
+ ) &&
echo ok
->) |
+) |
sort &&
(
bar &&
x=$(echo bar |
cat
->> ) &&
+ ) &&
y=$(echo baz |
->> fip) &&
+ fip) &&
echo fail
->)
+)