mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-12 21:18:53 +00:00
fix bug introduced by commit 86af63cd3
This commit is contained in:
parent
d2d707a6fa
commit
92f39f7b89
1 changed files with 4 additions and 4 deletions
|
@ -22,16 +22,16 @@ function funcsave --description "Save the current definition of all specified fu
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
set -l res 0
|
set -l retval 0
|
||||||
for funcname in $argv
|
for funcname in $argv
|
||||||
if functions -q -- $funcname
|
if functions -q -- $funcname
|
||||||
functions -- $i >$configdir/fish/functions/$funcname
|
functions -- $funcname >$configdir/fish/functions/$funcname.fish
|
||||||
else
|
else
|
||||||
printf (_ "%s: Unknown function '%s'\n") funcsave $funcname
|
printf (_ "%s: Unknown function '%s'\n") funcsave $funcname
|
||||||
set res 1
|
set retval 1
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
return $res
|
return $retval
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue