summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2022-03-14 10:54:18 -0400
committerTavian Barnes <tavianator@tavianator.com>2022-03-14 13:16:35 -0400
commit5b605d426cd581e87f1d2d8fc2f90bdf78cb3777 (patch)
tree5d4f43089b2cbe4f9a4c23e91b7f59a0c30f5170 /tests
parentad5f8490497d4002e6649ac6df2c3722b8381cf2 (diff)
downloadbfs-5b605d426cd581e87f1d2d8fc2f90bdf78cb3777.tar.xz
tests: Shell style fixes
We now support `./tests.sh --bfs="path/with\ spaces/bfs"`
Diffstat (limited to 'tests')
-rwxr-xr-xtests/sort-args.sh2
1 files changed, 1 insertions, 1 deletions
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[@]}"