projects
/
errhandle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7598497
)
code style
author
Ian Kelling
<iank@fsf.org>
Mon, 16 Jul 2018 15:43:01 +0000
(11:43 -0400)
committer
Ian Kelling
<iank@fsf.org>
Mon, 16 Jul 2018 15:49:43 +0000
(11:49 -0400)
err
patch
|
blob
|
blame
|
history
diff --git
a/err
b/err
index 5b501ce44cb7bf8b24c01fb1718850e709ee1838..f4aca22ceaf8d1bf74008b06f1a3a5edae110f19 100644
(file)
--- a/
err
+++ b/
err
@@
-87,14
+87,14
@@
err-exit() {
exec >&2
code=1
- if [[
$*
]]; then
+ if [[
"$*"
]]; then
if [[ ${1/[^0-9]/} == "$1" ]]; then
code=$1
if [[ $2 ]]; then
- printf
"%s\n"
"$2"
+ printf
'%s\n'
"$2"
fi
else
- printf
"%s\n"
"$0: $1"
+ printf
'%s\n'
"$0: $1"
fi
fi
echo "${BASH_SOURCE[1]}:${BASH_LINENO[0]}"