mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
Add path basename -E
tests
This commit is contained in:
parent
6091d1149f
commit
f84b1993ec
1 changed files with 5 additions and 0 deletions
|
@ -318,5 +318,10 @@ path basename -Z foo bar baz | path sort
|
||||||
# CHECK: baz
|
# CHECK: baz
|
||||||
# CHECK: foo
|
# CHECK: foo
|
||||||
|
|
||||||
|
path basename -E foo.txt /usr/local/foo.bar /foo.tar.gz
|
||||||
|
# CHECK: foo
|
||||||
|
# CHECK: foo
|
||||||
|
# CHECK: foo.tar
|
||||||
|
|
||||||
path basename --null-out bar baz | string escape
|
path basename --null-out bar baz | string escape
|
||||||
# CHECK: bar\x00baz\x00
|
# CHECK: bar\x00baz\x00
|
||||||
|
|
Loading…
Reference in a new issue