Replace echo
with printf
(#87)
This commit is contained in:
parent
abf6cd1c4c
commit
57866714c4
1 changed files with 16 additions and 2 deletions
18
yadm
18
yadm
|
@ -875,13 +875,13 @@ function set_operating_system() {
|
|||
|
||||
function debug() {
|
||||
|
||||
[ -n "$DEBUG" ] && echo -e "DEBUG: $*"
|
||||
[ -n "$DEBUG" ] && echo_e "DEBUG: $*"
|
||||
|
||||
}
|
||||
|
||||
function error_out() {
|
||||
|
||||
echo -e "ERROR: $*"
|
||||
echo_e "ERROR: $*"
|
||||
exit_with_hook 1
|
||||
|
||||
}
|
||||
|
@ -1072,6 +1072,20 @@ function mixed_path() {
|
|||
fi
|
||||
}
|
||||
|
||||
#; ****** echo replacements ******
|
||||
function echo() {
|
||||
IFS=' '
|
||||
printf '%s\n' "$*"
|
||||
}
|
||||
function echo_n() {
|
||||
IFS=' '
|
||||
printf '%s' "$*"
|
||||
}
|
||||
function echo_e() {
|
||||
IFS=' '
|
||||
printf '%b\n' "$*"
|
||||
}
|
||||
|
||||
#; ****** Main processing (when not unit testing) ******
|
||||
|
||||
if [ "$YADM_TEST" != 1 ] ; then
|
||||
|
|
Loading…
Reference in a new issue