projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
new version of subprocessing
[spider.git]
/
cmd
/
set
/
var.pl
diff --git
a/cmd/set/var.pl
b/cmd/set/var.pl
index d2ea1d1380ae4875e25d6c5321919febf7f0c314..05c1f5892d99fa4666499d751e77a69b0d5a96ce 100644
(file)
--- a/
cmd/set/var.pl
+++ b/
cmd/set/var.pl
@@
-5,16
+5,18
@@
#
# Copyright (c) 1999 - Dirk Koopman G1TLH
#
#
# Copyright (c) 1999 - Dirk Koopman G1TLH
#
-#
$Id$
+#
#
my ($self, $line) = @_;
return (1, $self->msg('e5')) if $self->priv < 9 || $self->remotecmd;
#
my ($self, $line) = @_;
return (1, $self->msg('e5')) if $self->priv < 9 || $self->remotecmd;
+return (1, $self->msg('e9')) unless $line;
+
my ($var, $rest) = split /=|\s+/, $line, 2;
$rest =~ s/^=\s*//;
my ($var, $rest) = split /=|\s+/, $line, 2;
$rest =~ s/^=\s*//;
-Log('DXCommand', $self->call . " set $var =
$rest"
);
+Log('DXCommand', $self->call . " set $var =
" . dd($rest)
);
eval "$var = $rest";
eval "$var = $rest";
-return (1, $@ ? $@ : "Ok, $var =
$rest"
);
+return (1, $@ ? $@ : "Ok, $var =
" . dd($rest)
);