X-Git-Url: https://git.distorted.org.uk/~mdw/rocl/blobdiff_plain/1304202ad2001c85d3eae3a37c51e001794c24c8..4041fdd8af852bf6fb4db0aa6ddd2c8c2f640574:/elite-find diff --git a/elite-find b/elite-find index c8dcabe..72805c6 100755 --- a/elite-find +++ b/elite-find @@ -1,6 +1,8 @@ #! /usr/bin/tclsh +# +# $Id: elite-find,v 1.4 2003/03/10 23:38:06 mdw Exp $ -package require "elite" "1.0.0" +package require "elite" "1.0.1" proc ok {s vv expr} { global argv0 @@ -52,7 +54,7 @@ for {set i 0} {$i < [llength $argv]} {incr i} { } default { break - } + } } } @@ -63,7 +65,7 @@ if {$i == [llength $argv] - 1} { puts stderr "usage: $argv0 \[-g GALAXY\] \[EXPR\]" exit 1 } -set ww [worldinfo $g] +set ww [elite-galaxylist $g] foreach {s x y} $ww { if {[string equal $expr ""] || [ok $s {} $expr]} { puts [world-summary $s]