From 5b605d426cd581e87f1d2d8fc2f90bdf78cb3777 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Mon, 14 Mar 2022 10:54:18 -0400 Subject: tests: Shell style fixes We now support `./tests.sh --bfs="path/with\ spaces/bfs"` --- tests/sort-args.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/sort-args.sh b/tests/sort-args.sh index f801d3b..227cc1a 100755 --- a/tests/sort-args.sh +++ b/tests/sort-args.sh @@ -1,4 +1,4 @@ #!/usr/bin/env bash -args=($({ for arg; do echo "$arg"; done } | sort)) +IFS=$'\n' read -rd '' -a args < <(printf '%s\n' "$@" | sort) echo "${args[@]}" -- cgit v1.2.3