From 9a314d370e5af2b2cef93a8392463e1b309cd5c5 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Fri, 14 Mar 2008 09:25:04 +0100 Subject: [PATCH] update exec.sh --- test/exec.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/test/exec.sh b/test/exec.sh index 31d40db..bdf601d 100755 --- a/test/exec.sh +++ b/test/exec.sh @@ -1,15 +1,18 @@ #!/bin/sh host="home.schottelius.org" - +host="" +set -x pcmd() { + echo "$#", "$@" if [ "$host" ]; then ssh "$host" "$@" else - "$@" + $@ fi } -pcmd ls / -pcmd cd /; ls "/is not there" +#pcmd ls / +#pcmd cd /; ls "/is not there" +pcmd cd / && ls