mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-15 15:05:27 +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"
|
||||
if functions -q -- $funcname
|
||||
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 ]
|
||||
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
|
||||
printf (_ "%s: Unknown function '%s'\n") funcsave $funcname >&2
|
||||
set retval 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user