Skip to content

Commit 2bc31a9

Browse files
committed
Fix redirection bug (SC2259) in test/testlib.sh
ShellCheck 0.7.2 says > In test/testlib.sh line 149: > grep -a -v -e '^\+ end_test' -e '^+ set +x' <"$TRASHDIR/out" | > ^-- SC2259: This redirection overrides piped input. To use both, merge or pass filenames. > >For more information: > https://www.shellcheck.net/wiki/SC2259 -- This redirection overrides piped ...
1 parent 6a9ba64 commit 2bc31a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/testlib.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ report_failure () {
146146
printf "test: %-73s $msg\\n" "$desc ..."
147147
(
148148
sed 's/^/ /' <"$TRASHDIR/out" |
149-
grep -a -v -e '^\+ end_test' -e '^+ set +x' <"$TRASHDIR/out" |
149+
grep -a -v -e '^\+ end_test' -e '^+ set +x' - "$TRASHDIR/out" |
150150
sed 's/[+] test_status=/test failed. last command exited with /' |
151151
sed 's/^/ /'
152152
) 1>&2

0 commit comments

Comments
 (0)