Feature or bug? Values like: ... KV_major () { local KV=; [ -z "$1" ] && return 1; KV="$(echo "$1" | awk '{ tmp = $0; gsub(/^[0-9\.]*/, "", tmp); sub(tmp, ""); print }')"; echo "${KV}" | awk -- 'BEGIN { FS = "." } { print $1 }'; return 0 } KV_micro () { local KV=; [ -z "$1" ] && return 1; KV="$(echo "$1" | awk '{ tmp = $0; gsub(/^[0-9\.]*/, "", tmp); sub(tmp, ""); print }')"; echo "${KV}" | awk -- 'BEGIN { FS = "." } { print $3 }'; return 0 } KV_minor () { local KV=; [ -z "$1" ] && return 1; KV="$(echo "$1" | awk '{ tmp = $0; gsub(/^[0-9\.]*/, "", tmp); sub(tmp, ""); print }')"; echo "${KV}" | awk -- 'BEGIN { FS = "." } { print $2 }'; return 0 } KV_to_int () { local KV_MAJOR=; local KV_MINOR=; local KV_MICRO=; local KV_int=; [ -z "$1" ] && return 1; KV_MAJOR="$(KV_major "$1")"; KV_MINOR="$(KV_minor "$1")"; KV_MICRO="$(KV_micro "$1")"; KV_int="$((KV_MAJOR * 65536 + KV_MINOR * 256 + KV_MICRO))"; if [ "${KV_int}" -ge 131584 ]; then echo "${KV_int}"; return 0; fi; return 1 } broken () { [ -z "$1" ] && return 1; check_dependency broken $*; return $? } ... i.e. there is a variable in the environment named "broken" with the value "() {..." This shows up a few places, but can be seen in all its glory in "phpinfo()" output... You can play around with it using an init script like: start() { ebegin "Starting evironment echo" bash eend $? } and running <scriptname> start using baselayout 1.8.6.8-r1
*** Bug 25015 has been marked as a duplicate of this bug. ***
Well, it is a bash 'feature'. All functions in files sourced is listed in the environment, and those are needed in the rc-system. I did add filtering of the "dependency" info in .10, so it will be less machine specific info.
This doesn't occur with 1.8.6.7, so what's the difference between 1.8.6.7 and 1.8.6.8+?
i'd also point out this odd bug i'm working with ... Bug 25754 ... glftpd is semi broken when using baselayout .8 and greater ... going back to .7 fixed it ...
Old bug.