From 073291934bf58477d3703e65a9fa893476832d99 Mon Sep 17 00:00:00 2001 From: deajan Date: Thu, 18 Aug 2016 12:57:50 +0200 Subject: [PATCH] Added another debugging function --- dev/ofunctions.sh | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/dev/ofunctions.sh b/dev/ofunctions.sh index 7cd00d9..d5f9d24 100644 --- a/dev/ofunctions.sh +++ b/dev/ofunctions.sh @@ -1,6 +1,6 @@ #### MINIMAL-FUNCTION-SET BEGIN #### -## FUNC_BUILD=2016081701 +## FUNC_BUILD=2016081801 ## BEGIN Generic functions for osync & obackup written in 2013-2016 by Orsiris de Jong - http://www.netpower.fr - ozy@netpower.fr ## type -p does not work on platforms other than linux (bash). If if does not work, always assume output is not a zero exitcode @@ -718,7 +718,7 @@ function EscapeSpaces { } function IsNumeric { - eval "local value=\"${1}\"" # Needed so variable variables can be processed + eval "local value=\"${1}\"" # Needed eval so variable variables can be processed local re="^-?[0-9]+([.][0-9]+)?$" if [[ $value =~ $re ]]; then @@ -747,9 +747,9 @@ function urlEncode { } function urlDecode { - local url_encoded="${1//+/ }" + local url_encoded="${1//+/ }" - printf '%b' "${url_encoded//%/\\x}" + printf '%b' "${url_encoded//%/\\x}" } function GetLocalOS { @@ -1310,4 +1310,9 @@ function InitRemoteOSSettings { } +## IFS debug function +function PrintIFS { + printf "IFS is: %q" "$IFS" +} + ## END Generic functions