mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-09 12:11:20 -03:00
Rename base/dir to basename/dirname
"dir" sounds like it asks "is it a directory".
This commit is contained in:
@@ -59,17 +59,17 @@ path strip-extension ~/.config
|
||||
echo $status
|
||||
# CHECK: 1
|
||||
|
||||
path base ./foo.mp4
|
||||
path basename ./foo.mp4
|
||||
# CHECK: foo.mp4
|
||||
path base ../banana
|
||||
path basename ../banana
|
||||
# CHECK: banana
|
||||
path base /usr/bin/
|
||||
path basename /usr/bin/
|
||||
# CHECK: bin
|
||||
path dir ./foo.mp4
|
||||
path dirname ./foo.mp4
|
||||
# CHECK: .
|
||||
path base ../banana
|
||||
path basename ../banana
|
||||
# CHECK: banana
|
||||
path base /usr/bin/
|
||||
path basename /usr/bin/
|
||||
# CHECK: bin
|
||||
|
||||
cd $TMPDIR
|
||||
|
||||
Reference in New Issue
Block a user