diff options
author | maxfl <gmaxfl@gmail.com> | 2012-07-02 11:19:30 +0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-07-05 14:17:25 -0700 |
commit | ea4b37d5c57a5f7377a605ea87411ca1e033f61a (patch) | |
tree | a291eb0add76a86973886ad3a8f0223b2f6a7dae /share/functions/funced.fish | |
parent | a1319cb8aa4b0942c2956ae0f202e918066ae67a (diff) |
Fixed case behaviour
* case no properly handles -h and --help flags, i.e. treats it as
pattern
* fixed case escaping:
The following expressions now work correctly:
switch '*'
echo '*'
echo Match any string
end
switch '*'
echo '\*'
echo Match asterix
end
switch '\\'
echo '\\\\'
echo Match slash
end
The same for '?' sign
Diffstat (limited to 'share/functions/funced.fish')
-rw-r--r-- | share/functions/funced.fish | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/functions/funced.fish b/share/functions/funced.fish index cc9db224..075b0301 100644 --- a/share/functions/funced.fish +++ b/share/functions/funced.fish @@ -4,7 +4,7 @@ function funced --description 'Edit function definition' set -l funcname while set -q argv[1] switch $argv[1] - case '---long impossible to match line, because case respects -h option' -h --help + case -h --help __fish_print_help funced return 0 |