mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-03 06:41:14 -03:00
Switch strip-extension to change-extension
This allows replacing the extension, e.g.
> path change-extension mp4 foo.wmv
foo.mp4
This commit is contained in:
@@ -47,14 +47,14 @@ echo $status
|
||||
# CHECK:
|
||||
# CHECK: 0
|
||||
|
||||
path strip-extension ./foo.mp4
|
||||
path change-extension '' ./foo.mp4
|
||||
# CHECK: ./foo
|
||||
path strip-extension ../banana
|
||||
path change-extension '' ../banana
|
||||
# CHECK: ../banana
|
||||
# but status 1, because there was no extension.
|
||||
echo $status
|
||||
# CHECK: 1
|
||||
path strip-extension ~/.config
|
||||
path change-extension '' ~/.config
|
||||
# CHECK: {{.*}}/.config
|
||||
echo $status
|
||||
# CHECK: 1
|
||||
|
||||
Reference in New Issue
Block a user