aboutsummaryrefslogtreecommitdiff
path: root/rex
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2013-01-15 21:14:39 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2013-01-15 21:14:39 +0200
commit757e74b931d128414b290d027d2bf88f6668892a (patch)
tree58da0a9a1f1a5ed25147d2fe29cbdc75faa6a28e /rex
parent653d6919fd9725b172c0affb576ecd4960334c99 (diff)
downloadrex-757e74b931d128414b290d027d2bf88f6668892a.tar.gz
rex-757e74b931d128414b290d027d2bf88f6668892a.tar.bz2
One more fix
* rex (getopt): Always define progname.
Diffstat (limited to 'rex')
-rwxr-xr-xrex6
1 files changed, 3 insertions, 3 deletions
diff --git a/rex b/rex
index 25c3405..867eb06 100755
--- a/rex
+++ b/rex
@@ -487,7 +487,7 @@ proc getopt {args} {
set args [lreplace $args 0 1]
}
"-progname" {
- set progname [lindex $args 1]
+ set progname "[lindex $args 1]: "
set args [lreplace $args 0 1]
}
default {
@@ -496,8 +496,8 @@ proc getopt {args} {
}
}
- if [info exists progname] {
- set progname "$progname: "
+ if ![info exists progname] {
+ set progname ""
}
if {[llength $args] != 4} {

Return to:

Send suggestions and report system problems to the System administrator.