Revert "disabling sed take 2"
This reverts commit 820599da48a0c15193116f194afccbc3b37e12b8.
diff --git a/hudson-scripts/init/_0_log.sh b/hudson-scripts/init/_0_log.sh
index c4710c5..9a906da 100644
--- a/hudson-scripts/init/_0_log.sh
+++ b/hudson-scripts/init/_0_log.sh
@@ -83,13 +83,13 @@
local start=0
fi
# starts at 3 to skips LSCALLSTACK and __onErr, the last one in arrays
- # for ((i=$start; i<FRAMES-1; i++)); do
- # echo ' File' \"${BASH_SOURCE[i+1]}\", line ${BASH_LINENO[i]}, in ${FUNCNAME[i+1]} >> "${LS_OUTPUT}"
+ for ((i=$start; i<FRAMES-1; i++)); do
+ echo ' File' \"${BASH_SOURCE[i+1]}\", line ${BASH_LINENO[i]}, in ${FUNCNAME[i+1]} >> "${LS_OUTPUT}"
# Grab the source code of the line
# sed -E -n ${BASH_LINENO[i]}'s/^[:space:]*/ /p' "${BASH_SOURCE[i+1]}" >> "${LS_OUTPUT}"
# TODO extract arugments from "${BASH_ARGC[@]}" and "${BASH_ARGV[@]}"
# It requires `shopt -s extdebug'
- # done
+ done
}
alias LSDEBUG='LSLOG 10'