diff options
Diffstat (limited to 'tests/test9.in')
-rw-r--r-- | tests/test9.in | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/tests/test9.in b/tests/test9.in index b7ca78d8..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 @@ -115,7 +136,7 @@ try_unbalanced_block 'if false' # BOM checking (see #1518) # But only in UTF8 -if locale | sgrep -q -i utf-8 +if locale | __fish_sgrep -q -i utf-8 echo \uFEFF"echo bom_test" | source else echo "echo bom_test" | source |