diff options
author | Mu Qiao <qiaomuf@gentoo.org> | 2012-03-27 20:38:37 +0800 |
---|---|---|
committer | Mu Qiao <qiaomuf@gentoo.org> | 2012-05-26 18:40:50 +0800 |
commit | d5775bf39c6ccb0ab61fa77b3582d812b07911a5 (patch) | |
tree | f68c44ec549a699c6fc0b1957fcc6e44d49c1aa4 | |
parent | Builtin: improve error output for some builtins (diff) | |
download | libbash-d5775bf39c6ccb0ab61fa77b3582d812b07911a5.tar.gz libbash-d5775bf39c6ccb0ab61fa77b3582d812b07911a5.tar.bz2 libbash-d5775bf39c6ccb0ab61fa77b3582d812b07911a5.zip |
Utils: add debug-print-function
-rw-r--r-- | scripts/isolated_functions.bash | 1 | ||||
-rwxr-xr-x | utils/isolated-functions.sh | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/scripts/isolated_functions.bash b/scripts/isolated_functions.bash index bf65f3e..e704c1a 100644 --- a/scripts/isolated_functions.bash +++ b/scripts/isolated_functions.bash @@ -12,3 +12,4 @@ use_enable eerror foo debug-print foo ewarn foo +debug-print-function foo bar diff --git a/utils/isolated-functions.sh b/utils/isolated-functions.sh index 150fe4b..e40bee0 100755 --- a/utils/isolated-functions.sh +++ b/utils/isolated-functions.sh @@ -50,6 +50,10 @@ debug-print() { echo "debug-print: $*" } +debug-print-function() { + debug-print "${1}: entering function, parameters: ${*:2}" +} + ewarn() { echo "ewarn: $*" } |