mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-14 17:07:44 +00:00
funcsave: add missing newlines
This commit is contained in:
parent
3fd2da951e
commit
a5978eade4
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue