summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorjluehrs2 <jluehrs2@uiuc.edu>2008-05-22 15:41:42 -0500
committerjluehrs2 <jluehrs2@uiuc.edu>2008-05-22 15:41:42 -0500
commita776c55b160c99e1c507c0c08227b692cfe1b31a (patch)
treea433e4d54a2f5a4b2d41eddc04e45c1bd90cad6b /bin
parentd466b70df09f9110d412717aad0ff21c34677e89 (diff)
downloadlanguage-teco-a776c55b160c99e1c507c0c08227b692cfe1b31a.tar.gz
language-teco-a776c55b160c99e1c507c0c08227b692cfe1b31a.zip
make execute return anything that would be printed to stdout, rather than printing it directly
Diffstat (limited to 'bin')
-rw-r--r--bin/te3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/te b/bin/te
index d9a8489..d50aed4 100644
--- a/bin/te
+++ b/bin/te
@@ -33,8 +33,9 @@ COMMAND: while (1) {
print "\n";
ReadMode 3;
local $SIG{INT} = sub { die "Execution interrupted" };
- eval { $te->execute($command) };
+ my $result = eval { $te->execute($command) };
print "? $@\n" if $@;
+ print $result if defined $result;
ReadMode 4;
last KEY;
}