chiark
/
gitweb
/
~mdw
/
ircbot
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
566161b
)
retry
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 3 Aug 2002 14:37:18 +0000
(14:37 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 3 Aug 2002 14:37:18 +0000
(14:37 +0000)
on-vc.sh
patch
|
blob
|
blame
|
history
diff --git
a/on-vc.sh
b/on-vc.sh
index e68d1a7e1bf14e611c341006a8c4984a543c2557..e560ed45df42554b98ce1a1730757ea8ad0ff408 100755
(executable)
--- a/
on-vc.sh
+++ b/
on-vc.sh
@@
-13,12
+13,13
@@
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
fail () { echo 2>&1 "$0: $1"; exit 1; }
-test $#
= 2 || fail "usage: $0 VC SCRIPT
"
+test $#
-ge 2 || fail "usage: $0 VC SCRIPT [ARGS]
"
vc="$1"
script="$2"
+shift; shift
cd "$(dirname $0)"
test -L .tclshrc || fail "no .tclshrc symlink"
test -x "./$script" || fail "script not executable"
-openvt -f -c "$vc" -w -- screen ./"$script"
+openvt -f -c "$vc" -w -- screen ./"$script"
"$@"