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

Param -e breaks if value starts with '-' #2885

Closed
p6rt opened this issue Sep 3, 2012 · 3 comments
Closed

Param -e breaks if value starts with '-' #2885

p6rt opened this issue Sep 3, 2012 · 3 comments

Comments

@p6rt
Copy link

p6rt commented Sep 3, 2012

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

Searchable as RT114720$

@p6rt
Copy link
Author

p6rt commented Sep 3, 2012

From @bbkr

In Star 2012.08 command line one-liners cannot start with '-' because command line parser thinks it is the beginning of next param.

$ perl6 -e '-1'
Option -e needs a value, but is followed by an option

FYI It works in Perl5​:
$ perl -e '-1 == -1 ? print "OK"​: print "BAD";'
OK

@p6rt
Copy link
Author

p6rt commented Oct 14, 2012

From @moritz

fixed in nqp commit 86b5b43.

@p6rt
Copy link
Author

p6rt commented Oct 14, 2012

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

@p6rt p6rt closed this as completed Oct 14, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant