Skip to content

Commit

Permalink
Add [exit]
Browse files Browse the repository at this point in the history
  • Loading branch information
coke committed Dec 1, 2009
1 parent 1dbaf7a commit c76b570
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/PmTcl/commands/main.pm
Expand Up @@ -108,6 +108,14 @@ our sub eval(*@args) {
&sub();
}

our sub exit(*@args) {
if +@args > 1 {
error('wrong # args: should be "exit ?returnCode?"');
}
my $code := @args[0] // 0;
pir::exit__vi($code);
}

our sub expr(*@args) {
my $code := pir::join(' ', @args);
our %EXPRCACHE;
Expand Down

0 comments on commit c76b570

Please sign in to comment.