diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2022-03-14 10:54:18 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2022-03-14 13:16:35 -0400 |
commit | 5b605d426cd581e87f1d2d8fc2f90bdf78cb3777 (patch) | |
tree | 5d4f43089b2cbe4f9a4c23e91b7f59a0c30f5170 /tests/sort-args.sh | |
parent | ad5f8490497d4002e6649ac6df2c3722b8381cf2 (diff) | |
download | bfs-5b605d426cd581e87f1d2d8fc2f90bdf78cb3777.tar.xz |
tests: Shell style fixes
We now support `./tests.sh --bfs="path/with\ spaces/bfs"`
Diffstat (limited to 'tests/sort-args.sh')
-rwxr-xr-x | tests/sort-args.sh | 2 |
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[@]}" |