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

-Ixxx Command Line Option Silently ignored #2722

Closed
p6rt opened this issue Apr 23, 2012 · 5 comments
Closed

-Ixxx Command Line Option Silently ignored #2722

p6rt opened this issue Apr 23, 2012 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Apr 23, 2012

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

Searchable as RT112586$

@p6rt
Copy link
Author

p6rt commented Apr 23, 2012

From @colomon

This is perl6 version 2012.04-52-gb64c1e9 built on parrot 4.3.0
revision RELEASE_4_3_0

First, the module is in the lib directory​:

Wynne​:Math-Prime colomon$ PERL6LIB=lib perl6 t/01-basic.t
ok 1 - First ten primes are correct
ok 2 - Primes 60 through 69 are correct
...etc...

Next two show that adding -Ilib instead of using PERL6LIB doesn't do
anything at all​:

Wynne​:Math-Prime colomon$ perl6 t/01-basic.t
===SORRY!===
Could not find Math​::Prime in any of​: /Users/colomon/.perl6/lib,
/Users/colomon/tools/rakudo/install/lib/parrot/4.3.0-devel/languages/perl6/lib,
.

Wynne​:Math-Prime colomon$ perl6 -Ilib t/01-basic.t
===SORRY!===
Could not find Math​::Prime in any of​: /Users/colomon/.perl6/lib,
/Users/colomon/tools/rakudo/install/lib/parrot/4.3.0-devel/languages/perl6/lib,
.

Finally, what happens if we just give it -I, no directory specified?

Wynne​:Math-Prime colomon$ perl6 -I t/01-basic.t
No such option -I
[switches] [--] [programfile] [arguments]

  With no arguments, enters a REPL. With a "[programfile]" or the
  "-e" option, compiles the given program and by default also
  executes the compiled code.
...etc...

In other words, it appears -Ilib is being parsed as a meaningful
command line option, but is silently ignored.

--
Solomon Foster​: colomon@​gmail.com
HarmonyWare, Inc​: http://www.harmonyware.com

@p6rt
Copy link
Author

p6rt commented Jun 21, 2012

From @jnthn

On Mon Apr 23 11​:59​:26 2012, Solomon wrote​:

This is perl6 version 2012.04-52-gb64c1e9 built on parrot 4.3.0
revision RELEASE_4_3_0

First, the module is in the lib directory​:

Wynne​:Math-Prime colomon$ PERL6LIB=lib perl6 t/01-basic.t
ok 1 - First ten primes are correct
ok 2 - Primes 60 through 69 are correct
...etc...

Next two show that adding -Ilib instead of using PERL6LIB doesn't do
anything at all​:

Wynne​:Math-Prime colomon$ perl6 t/01-basic.t
===SORRY!===
Could not find Math​::Prime in any of​: /Users/colomon/.perl6/lib,
/Users/colomon/tools/rakudo/install/lib/parrot/4.3.0-
devel/languages/perl6/lib,
.

Wynne​:Math-Prime colomon$ perl6 -Ilib t/01-basic.t
===SORRY!===
Could not find Math​::Prime in any of​: /Users/colomon/.perl6/lib,
/Users/colomon/tools/rakudo/install/lib/parrot/4.3.0-
devel/languages/perl6/lib,
.

Finally, what happens if we just give it -I, no directory specified?

Wynne​:Math-Prime colomon$ perl6 -I t/01-basic.t
No such option -I
[switches] [--] [programfile] [arguments]

    With no arguments, enters a REPL\. With a "\[programfile\]" or

the
"-e" option, compiles the given program and by default also
executes the compiled code.
...etc...

In other words, it appears -Ilib is being parsed as a meaningful
command line option, but is silently ignored.

Fixed by moritz++; tagging testneeded.

/jnthn

@p6rt
Copy link
Author

p6rt commented Jun 21, 2012

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

@p6rt
Copy link
Author

p6rt commented Jan 4, 2013

From @moritz

resolving without test for now, until we generally introduce tests for
command line options.

@p6rt
Copy link
Author

p6rt commented Jan 4, 2013

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

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