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

Usage message suggests unquoted way of passing several-word argument which will not work in Rakudo #2808

Closed
p6rt opened this issue Jul 2, 2012 · 3 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Jul 2, 2012

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

Searchable as RT113954$

@p6rt
Copy link
Author

p6rt commented Jul 2, 2012

From @masak

$ perl6 -e 'multi MAIN("foo bar") {}' foo bar
Usage​:
  -e '...' foo bar
$ perl6 -e 'multi MAIN("foo bar") { say "OH HAI" }' 'foo bar'
OH HAI
$

The usage message is confusing because it suggests exactly the
sequence of arguments that failed and triggered the message.
Shell-quoting the two words makes the invocation succeed. I suggest
the shell-quoting be included in the usage message -- but the exact
nature of the fix doesn't matter that much to me, the most important
thing is that usage message not suggest things that don't work.

@p6rt
Copy link
Author

p6rt commented Apr 24, 2017

From @MasterDuke17

Fixed in rakudo/rakudo#1064
Tests added in rakudo/rakudo#1066

@p6rt
Copy link
Author

p6rt commented Apr 24, 2017

@MasterDuke17 - Status changed from 'new' to 'resolved'

@p6rt p6rt closed this as completed Apr 24, 2017
@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