mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-15 22:44:01 +00:00
__fish_print_help: handle [ and :
This commit is contained in:
parent
c2fe319af0
commit
1f8c9a5d42
1 changed files with 7 additions and 2 deletions
|
@ -1,6 +1,11 @@
|
|||
function __fish_print_help --description "Print help message for the specified fish function or builtin" --argument item error_message
|
||||
if test "$item" = '.'
|
||||
set item source
|
||||
switch $item
|
||||
case .
|
||||
set item source
|
||||
case :
|
||||
set item true
|
||||
case '['
|
||||
set item test
|
||||
end
|
||||
|
||||
# Do nothing if the file does not exist
|
||||
|
|
Loading…
Reference in a new issue