diff options
author | Eugene Sharygin <eush77@gmail.com> | 2015-02-16 15:28:11 +0300 |
---|---|---|
committer | Fabian Homborg <FHomborg@gmail.com> | 2015-11-14 13:15:30 +0100 |
commit | 5db811253e0440b372b9063d8a92a98e06a39171 (patch) | |
tree | 8c1fd59a143896a6b6dec7cd4958bb6ae596849a /tests/test9.in | |
parent | e31a93040e46f32267ec3a72eca71a008e5c9e3a (diff) |
psub: add -s, --suffix
Diffstat (limited to 'tests/test9.in')
-rw-r--r-- | tests/test9.in | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/test9.in b/tests/test9.in index 962fae8c..1199609b 100644 --- a/tests/test9.in +++ b/tests/test9.in @@ -97,6 +97,27 @@ else echo 'psub file was deleted' end +if count (echo foo | psub -s .cc | grep -o '\.cc$') >/dev/null + echo 'psub filename ends with .cc' +else + echo 'psub filename does not end with .cc' +end + +if count (echo foo | psub -f -s .cc | grep -o '\.cc$') >/dev/null + echo 'psub filename ends with .cc' +else + echo 'psub filename does not end with .cc' +end + +set -l filename (echo foo | psub -s .fish) +if test -e (dirname $filename) + echo 'psub directory was not deleted' +else + echo 'psub directory was deleted' +end + +diff -q (__fish_print_help psub | psub) (psub -hs banana | psub) + # Test support for unbalanced blocks function try_unbalanced_block ../fish -c "echo $argv | source " 2>&1 | grep "Missing end" 1>&2 |