chainlint: recognize multi-line $(...) when command cuddled with "$("
[gitweb.git] / t / chainlint.sed
index 2901494e8ae32f01fd86b669ec6272d4a801da65..afb2443a9cfba05b05d08a9b9a0f4c30c2a21149 100644 (file)
@@ -216,7 +216,7 @@ s/.*\n//
 # "$(...)" -- command substitution; not closing ")"
 /\$([^)][^)]*)[^)]*$/bcheckchain
 # multi-line "$(...\n...)" -- command substitution; treat as nested subshell
-/\$([  ]*$/bnest
+/\$([^)]*$/bnest
 # "=(...)" -- Bash array assignment; not closing ")"
 /=(/bcheckchain
 # closing "...) &&"