mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-27 19:53:36 +08:00
6c1ec98e92
Alternative is to print an error.
14 lines
354 B
Fish
14 lines
354 B
Fish
#RUN: %fish %s
|
|
|
|
prompt_pwd -d 1 /foo/bar/baz
|
|
# CHECK: /f/b/baz
|
|
|
|
prompt_pwd /usr/share/fish/tools/web_config/sample_prompts
|
|
# CHECK: /u/s/f/t/w/sample_prompts
|
|
|
|
prompt_pwd -D 2 /usr/share/fish/tools/web_config/sample_prompts
|
|
# CHECK: /u/s/f/t/web_config/sample_prompts
|
|
|
|
prompt_pwd -D 0 /usr/share/fish/tools/web_config/sample_prompts
|
|
# CHECK: /u/s/f/t/w/s
|