diff --git a/test/exec.sh b/test/exec.sh new file mode 100755 index 0000000..31d40db --- /dev/null +++ b/test/exec.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +host="home.schottelius.org" + +pcmd() +{ + if [ "$host" ]; then + ssh "$host" "$@" + else + "$@" + fi +} + +pcmd ls / +pcmd cd /; ls "/is not there"