diff options
author | Elliott Hughes <enh@google.com> | 2018-11-12 20:52:29 -0800 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2018-11-13 15:51:44 -0600 |
commit | 457dda2930287e4bb1bbc3c3ff56fcd4e9ffa3de (patch) | |
tree | d57463c7fde2d49203660c002978e76c6f4d4dc3 /tests | |
parent | d54fac979ef9f96a64dcce2e3876b97dfcc5a25d (diff) | |
download | toybox-457dda2930287e4bb1bbc3c3ff56fcd4e9ffa3de.tar.gz |
basename: -s SUFFIX.
AOSP doesn't need -a specifically, but since it's needed for -s we may
as well accept it too.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/basename.test | 5 |
1 files changed, 5 insertions, 0 deletions
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" "" "" |