string split: Unknown option “- 'cd -'”
~/.config/fish/fisher/functions/__abbr_tips_init.fish (line 1):
string split -m1 ' ' "$abb[$i]"
^
in command substitution
called on line 10 of file ~/.config/fish/fisher/functions/__abbr_tips_init.fish
in function '__abbr_tips_init'
If the abbreviation starts with - it will errors out. This PR adds -- to escape possible invalid string
Description
Add escape
--
to the string splitSee the following error:
If the abbreviation starts with
-
it will errors out. This PR adds--
to escape possible invalid stringRelated issues
Notes