summaryrefslogtreecommitdiffstats
path: root/tests/sort-args.sh
blob: 227cc1aee119046b1429bfdb09b1d85411383018 (plain)
1
2
3
4
#!/usr/bin/env bash

IFS=$'\n' read -rd '' -a args < <(printf '%s\n' "$@" | sort)
echo "${args[@]}"