From 457dda2930287e4bb1bbc3c3ff56fcd4e9ffa3de Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Mon, 12 Nov 2018 20:52:29 -0800 Subject: basename: -s SUFFIX. AOSP doesn't need -a specifically, but since it's needed for -s we may as well accept it too. --- tests/basename.test | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests') diff --git a/tests/basename.test b/tests/basename.test index 25e5493f..9fd570f0 100755 --- a/tests/basename.test +++ b/tests/basename.test @@ -24,3 +24,8 @@ testcmd "invalid suffix" "isthisasuffix? suffix" "isthisasuffix?\n" "" "" # Zero-length suffix testcmd "zero-length suffix" "a/b/c ''" "c\n" "" "" + +# -s. +testcmd "-s" "-s .txt /a/b/c.txt" "c\n" "" "" +testcmd "-s implies -a" "-s .txt /a/b/c.txt /a/b/d.txt" "c\nd\n" "" "" +testcmd "-a" "-a /a/b/f1 /c/d/f2" "f1\nf2\n" "" "" -- cgit v1.2.3