projects
/
scpubgit/DKit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
8c3eab7
)
eval cage for the shell
Matt S Trout [Fri, 14 Feb 2014 21:20:12 +0000 (21:20 +0000)]
bin/dx-shell
patch
|
blob
|
blame
|
history
diff --git
a/bin/dx-shell
b/bin/dx-shell
index
b320133
..
5a61588
100644
(file)
--- a/
bin/dx-shell
+++ b/
bin/dx-shell
@@
-99,7
+99,9
@@
my $cmd;
while (defined(my $line = $rl->readline(length($cmd)?'> ':'$ '))) {
$cmd .= "${line}\n";
if ($tcl->call(info => complete => $cmd)) {
- $tcl->Eval($cmd);
+ unless (eval { $tcl->Eval($cmd); 1 }) {
+ warn $@;
+ }
$cmd = '';
}
}