News Score: Score the News, Sort the News, Rewrite the Headlines

COLODEBUG: a simple way to improve bash script debugging

In this article, I will show you an easy-to-use, simple, and non-disruptive way to extend a GNU bash script by a few lines that can help make sense of its execution flow at runtime a fair bit easier. Using this method will also allow you to effortlessly add a “verbose” execution mode to scripts you create or extend. It also improves the usefulness of set -x aka xtrace mode. The method is compatible with zsh, and maybe also other advanced Bourne-style shells. POSIX sh will, unfortunately, only wo...

Read more at johannes.truschnigg.info

© News Score  score the news, sort the news, rewrite the headlines