3 # Present a list of shell commands by single-stepping and echoing commands.
4 # Note that this only works well for self-contained single lines, no multi-line
7 # (c) 2009 Martin Pitt <martin@piware.de>
8 # License: Public Domain
11 echo "Usage: $0 <shell script>" >&2
18 # paragraph clears screen
19 if [ -z "$line" ]; then
25 if [ "${line:0:1}" = "#" ]; then
26 if [ -n "${line:1}" ]; then
27 echo -e "\e[32m$line\e[30m"
33 echo -en "\e[31m\$\e[30m $line"