develooper Front page | perl.perl6.compiler | Postings from January 2012

[perl #73790] [BUG] Rakudo doesn't accept several -e options (but Perl 5 does)

From:
Will Coleda via RT
Date:
January 30, 2012 06:11
Subject:
[perl #73790] [BUG] Rakudo doesn't accept several -e options (but Perl 5 does)
Message ID:
rt-3.6.HEAD-14510-1327932664-1696.73790-15-0@perl.org
On Wed Mar 24 07:00:23 2010, masak wrote:
> $ perl -e 'print "OH HAI\n";' -e 'print "OH BAI BAI\n"'
> OH HAI
> OH BAI BAI
> 
> $ perl6 -e 'print "OH HAI\n";' -e 'print "OH BAI BAI\n"'
> OH BAI BAI
> 
> So Perl 6 doesn't behave like Perl 5 (and sed and lots of other
> programs accepting the -e option). S19:427 even says that chaining -e
> options together should work.

Behavior has changed: rakudo is now running the first -e, not the last:

$ ./perl6 -e 'print "OH HAI\n";' -e 'print "OH BAI BAI\n"'
OH HAI


-- 
Will "Coke" Coleda



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About