mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-27 14:45:13 +08:00
funcsave: add missing newlines
This commit is contained in:
parent
3fd2da951e
commit
a5978eade4
@ -29,10 +29,10 @@ function funcsave --description "Save the current definition of all specified fu
|
|||||||
set -l funcpath "$funcdir/$funcname.fish"
|
set -l funcpath "$funcdir/$funcname.fish"
|
||||||
if functions -q -- $funcname
|
if functions -q -- $funcname
|
||||||
functions --no-details -- $funcname >$funcpath
|
functions --no-details -- $funcname >$funcpath
|
||||||
and set -q _flag_quiet || printf (_ "%s: wrote %s") funcsave $funcpath
|
and set -q _flag_quiet || printf (_ "%s: wrote %s\n") funcsave $funcpath
|
||||||
else if [ -w $funcpath ]
|
else if [ -w $funcpath ]
|
||||||
rm $funcpath
|
rm $funcpath
|
||||||
and set -q _flag_quiet || printf (_ "%s: removed %s") funcsave $funcpath
|
and set -q _flag_quiet || printf (_ "%s: removed %s\n") funcsave $funcpath
|
||||||
else
|
else
|
||||||
printf (_ "%s: Unknown function '%s'\n") funcsave $funcname >&2
|
printf (_ "%s: Unknown function '%s'\n") funcsave $funcname >&2
|
||||||
set retval 1
|
set retval 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user