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

A run-time error in MAIN() dispatch leads to USAGE call, not to a proper error message #2030

Closed
p6rt opened this issue Aug 6, 2010 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Aug 6, 2010

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

Searchable as RT77056$

@p6rt
Copy link
Author

p6rt commented Aug 6, 2010

From @moritz

22​:31 < moritz_> rakudo​: sub MAIN($x = unknown_function()) { };
22​:31 <+p6eval> rakudo 0e5edb​: OUTPUT«Usage​:␤/tmp/xxCYRgfKfJ [x]␤»

Found by Eddward++

@p6rt
Copy link
Author

p6rt commented Oct 5, 2011

From @coke

On Fri Aug 06 13​:33​:36 2010, moritz wrote​:

22​:31 < moritz_> rakudo​: sub MAIN($x = unknown_function()) { };
22​:31 <+p6eval> rakudo 0e5edb​: OUTPUT«Usage​:␤/tmp/xxCYRgfKfJ [x]␤»

Found by Eddward++

rakudo master says​:

$ perl6 -e 'sub MAIN($x = unknown_function()) { };'
Could not find sub &unknown_function
  in sub MAIN_HELPER at src/gen/CORE.setting​:6478

Closable with tests.

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Oct 5, 2011

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

@p6rt
Copy link
Author

p6rt commented Oct 5, 2011

From @moritz

... and tested in main-usage.t

@p6rt
Copy link
Author

p6rt commented Oct 5, 2011

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

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

No branches or pull requests

1 participant