From 78d52a7c0e1eef84a61bdb847d6aa83b6dcdccb2 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sat, 15 Apr 2017 19:44:09 -0400 Subject: Implement -exec/-execdir ... + --- tests/sort-args.sh | 4 ++++ tests/test_exec_plus.out | 1 + tests/test_execdir_plus.out | 11 +++++++++++ 3 files changed, 16 insertions(+) create mode 100755 tests/sort-args.sh create mode 100644 tests/test_exec_plus.out create mode 100644 tests/test_execdir_plus.out (limited to 'tests') diff --git a/tests/sort-args.sh b/tests/sort-args.sh new file mode 100755 index 0000000..5214598 --- /dev/null +++ b/tests/sort-args.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +args=($({ for arg; do echo "$arg"; done } | sort)) +echo "${args[@]}" diff --git a/tests/test_exec_plus.out b/tests/test_exec_plus.out new file mode 100644 index 0000000..f6b423b --- /dev/null +++ b/tests/test_exec_plus.out @@ -0,0 +1 @@ +basic basic/a basic/b basic/c basic/c/d basic/e basic/e/f basic/g basic/g/h basic/i basic/j basic/j/foo basic/k basic/k/foo basic/k/foo/bar basic/l basic/l/foo basic/l/foo/bar basic/l/foo/bar/baz diff --git a/tests/test_execdir_plus.out b/tests/test_execdir_plus.out new file mode 100644 index 0000000..5bbb758 --- /dev/null +++ b/tests/test_execdir_plus.out @@ -0,0 +1,11 @@ +./bar +./bar +./basic +./baz +./d +./f +./foo +./foo +./foo +./h +./a ./b ./c ./e ./g ./i ./j ./k ./l -- cgit v1.2.3