Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

&exit produces a (disappointing) backtrace in Rakudo #1801

Closed
p6rt opened this issue Jun 2, 2010 · 6 comments
Closed

&exit produces a (disappointing) backtrace in Rakudo #1801

p6rt opened this issue Jun 2, 2010 · 6 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Jun 2, 2010

Migrated from rt.perl.org#75514 (status was 'resolved')

Searchable as RT75514$

@p6rt
Copy link
Author

p6rt commented Jun 2, 2010

From @masak

<masak> rakudo​: exit
<p6eval> rakudo 18d996​: OUTPUT«␤ in main program body at line 1␤»
* masak submits rakudobug

As far as I understand, &exit, while probably implemented internally
using some exception mechanism or other, shouldn't print a backtrace.
Backtraces are more for when things went wrong.

@p6rt
Copy link
Author

p6rt commented Jun 3, 2010

From @szabgab

use v6;

say 2;
exit;

will gives the following error​:

  in main program body at line 1

and the exit code is 1

The same happens if I call exit(0); or
exit(42);

@p6rt
Copy link
Author

p6rt commented Jun 5, 2010

From @jnthn

On Wed Jun 02 07​:57​:33 2010, masak wrote​:

<masak> rakudo​: exit
<p6eval> rakudo 18d996​: OUTPUT«␤ in main program body at line 1␤»
* masak submits rakudobug

As far as I understand, &exit, while probably implemented internally
using some exception mechanism or other, shouldn't print a backtrace.
Backtraces are more for when things went wrong.

Disappointing backtrace is disappointing.

Fixed now, exit once again exits. Given to moritz++ for spectest.

Thank,

Jonathan

@p6rt
Copy link
Author

p6rt commented Jun 5, 2010

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Jun 5, 2010

From @moritz

... and now tested with the awesome Test​::Util (for which I can't give
KyleHa++ too much praise) in t/spec/S29-context/exit.t.

@p6rt
Copy link
Author

p6rt commented Jun 5, 2010

@moritz - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Jun 5, 2010
@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant