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

bizarre usage ouput for sub MAIN($foo,*%) { } #5155

Closed
p6rt opened this issue Feb 27, 2016 · 6 comments
Closed

bizarre usage ouput for sub MAIN($foo,*%) { } #5155

p6rt opened this issue Feb 27, 2016 · 6 comments

Comments

@p6rt
Copy link

p6rt commented Feb 27, 2016

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

Searchable as RT127621$

@p6rt
Copy link
Author

p6rt commented Feb 27, 2016

From @LLFourn

perl6 -e 'sub MAIN($foo,*%) { }'

Usage​:

  -e '...' [--<(HANDLED) Start argument to substr out of range. Is​: 1,
should be in 0..0; use *1 if you want to index relative to the end
  in block <unit> at -e line 1

=...] <foo>

@p6rt
Copy link
Author

p6rt commented Feb 27, 2016

From @LLFourn

BTW this is nothing to do with -e. It happens if you do the same thing in a
file. Auto-usage is broken in general *%variables but esp broken when they
have a 0 length variable name.

On Sat, Feb 27, 2016 at 2​:25 PM Lloyd Fournier <perl6-bugs-followup@​perl.org>
wrote​:

# New Ticket Created by Lloyd Fournier
# Please include the string​: [perl #​127621]
# in the subject line of all future correspondence about this issue.
# <URL​: https://rt-archive.perl.org/perl6/Ticket/Display.html?id=127621 >

perl6 -e 'sub MAIN($foo,*%) { }'

Usage​:

-e '...' [--<(HANDLED) Start argument to substr out of range. Is​: 1,
should be in 0..0; use *1 if you want to index relative to the end
in block <unit> at -e line 1

=...] <foo>

@p6rt
Copy link
Author

p6rt commented Jul 10, 2016

From @zoffixznet

The problem is still present, but the error has changed​:

zoffix@​VirtualBox​:~$ perl6 -v
This is Rakudo version 2016.06-154-g55c359e built on MoarVM version 2016.06-9-g8fc21d5
implementing Perl 6.c.

zoffix@​VirtualBox​:~$ perl6 -e 'sub MAIN($foo,*%) { }'
chars requires a concrete string, but got null
  in block <unit> at -e line 1

@p6rt
Copy link
Author

p6rt commented Jul 10, 2016

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

@p6rt
Copy link
Author

p6rt commented Dec 24, 2016

From @zoffixznet

On Fri, 26 Feb 2016 18​:09​:15 -0800, lloyd.fourn@​gmail.com wrote​:

perl6 -e 'sub MAIN($foo,*%) { }'

Usage​:

-e '...' [--<(HANDLED) Start argument to substr out of range. Is​: 1,
should be in 0..0; use *1 if you want to index relative to the end
in block <unit> at -e line 1

=...] <foo>

Thank you for the report. This is now fixed.

Fix​: rakudo/rakudo@38ec79c623
Test​: Raku/roast@a26b352434

@p6rt
Copy link
Author

p6rt commented Dec 24, 2016

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

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