improve warn construct
avoid double-substitution in printf
remove unused variable
replace backticks with $()
add missing quotes
defensive quoting
move multiword value into array + quote it
Merge pull request #4508 from rolandwalker/devscript_cleanup

bash devscript cleanup