From 87e5fbfff3f696935e76c67716e18cad5a58b75e Mon Sep 17 00:00:00 2001 From: David Yonge-Mallo Date: Thu, 16 May 2024 14:52:28 +0200 Subject: [PATCH] Fix broken pipe in run_tests_less.sh. (#219) Running the script (prior to this PR) results in: `./run_tests_less.sh: 12: Syntax error: "&" unexpected`. This is because plain `sh` (Bourne shell) does not support the `bash` shorthand `|&` for `2>&1 |`. --- run_tests_less.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run_tests_less.sh b/run_tests_less.sh index 9fd87b7..f15aa57 100755 --- a/run_tests_less.sh +++ b/run_tests_less.sh @@ -9,4 +9,4 @@ # are breaking the source. Or may break it. # r-a uses some system to control this that we have not, and may never, set up. -cargo test --lib --tests --color always -- --skip sourcegen_ast --skip sourcegen_ast_nodes |& less -R +cargo test --lib --tests --color always -- --skip sourcegen_ast --skip sourcegen_ast_nodes 2>&1 | less -R