lhunath 1400087439 learn pretty() { printf 'pretty(){\n%s\n}\ndeclare -f pretty\n' "$(cat)" | bash; } ## Usage: pretty < myscript lhunath 1400087534 forget lhunath 1400087584 learn "Pretty-print" your bash code: pretty() { printf 'pretty(){\n%s\n}\ndeclare -f pretty\n' "$(cat)" | bash; } ## Usage: pretty < myscript lhunath 1400088355 forget lhunath 1400088372 learn "Pretty-print" your bash code: pretty() { printf 'pretty(){ %s; }; declare -f pretty' "$(cat)" | bash; } ## Usage: pretty < myscript lhunath 1400089165 forget lhunath 1400089185 learn "Pretty-print" your bash code: pretty() { printf 'pretty(){ %s\n }; declare -f pretty' "$(cat)" | bash; } ## Usage: pretty < myscript mknod 1531798928 forget mknod 1531798939 learn "Pretty-print" your bash code: pretty() { printf 'pretty() { %s\n }; declare -f pretty' "$(cat)" | bash | sed '1d;2d;$d;s/^\ \ \ \ //'; } ## Usage: pretty < myscript Soliton 1547209487 forget Soliton 1547209493 learn "Pretty-print" your bash code: pretty() { printf 'pretty() { %s\n }; declare -f pretty' "$(cat)" | bash | sed '1d;2d;$d;s/^ //'; } ## Usage: pretty < myscript greycat 1643746881 forget greycat 1643746888 learn bash --pretty-print yourfile (undocumented), or pretty() { printf 'pretty() { %s\n }; declare -f pretty' "$(cat)" | bash | sed '1d;2d;$d;s/^ //'; } ## Usage: pretty < myscript