4 ms·
I'm partial to defining echoeval() echoeval(){ CMD="$@" echo "$ $CMD" eval "$CMD" } echoeval ssh test -A Variants that take a first paramet
by mcint 2y ago
I'm partial to defining echoeval()
echoeval(){
CMD="$@"
echo "$ $CMD"
eval "$CMD"
}
echoeval ssh test -A
Variants that take a first parameter for coloring output, directing to stdout/stderr, or (for one-shot commands) variant that colors output based on return value -- are functions I have written.