aboutsummaryrefslogtreecommitdiff
path: root/autoconf/tea/_teaish.tester.tcl.in
diff options
context:
space:
mode:
Diffstat (limited to 'autoconf/tea/_teaish.tester.tcl.in')
-rw-r--r--autoconf/tea/_teaish.tester.tcl.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/autoconf/tea/_teaish.tester.tcl.in b/autoconf/tea/_teaish.tester.tcl.in
index 59d11f0a8..e04d8e63e 100644
--- a/autoconf/tea/_teaish.tester.tcl.in
+++ b/autoconf/tea/_teaish.tester.tcl.in
@@ -21,7 +21,8 @@ if {[llength [lindex $::argv 0]] > 0} {
# ----^^^^^^^ needed on Haiku when argv 0 is just a filename, else
# load cannot find the file.
}
-source -encoding utf-8 [lindex $::argv 2]; # teaish/tester.tcl
+set ::argv [lassign $argv - -]
+source -encoding utf-8 [lindex $::argv 0]; # teaish/tester.tcl
@if TEAISH_PKGINIT_TCL
apply {{file} {
set dir [file dirname $::argv0]