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
corelist behaving weirdly when a module name starts with a hyphen #16809
Comments
From @xenuIf you pass anything starting with a hyphen as a module name, corelist % corelist -a -- -anything-starting-with-a-hyphen Data for 2018-12-18 |
From @jkeenanOn Sat, 12 Jan 2019 18:38:48 GMT, me@xenu.pl wrote:
When I simply type: ##### ... I get the Usage statement, just as I would if I had typed 'corelist -h'. That leads me to believe that 'corelist' is interpreting '-a --' as a mistake and defaulting to the Usage statement. It probably should quit right there, but it apparently continues to parse command-line arguments. To get the weird behavior reported by xenu, I have to say '-a -- -<module_name>', e.g., ##### Data for 2018-06-22 ##### So my hunch is that 'corelist -a' needs to be modified to be stricter with respect to what additional arguments it accepts. Thank you very much. |
The RT System itself - Status changed from 'new' to 'open' |
This is because The simplest fix would be to make |
What do you intend |
Module::CoreList functions can be called either as methods or function, and several of them only shift off the invocant if the second argument is a valid module name, isn't. This means that `Module::CoreList->first_release($not_a_module)` gets interpreted as `Module::CoreList::first_release('Module::CoreList', $not_a_module)`, and so reports whichever perl release had Module::CoreList with `$VERSION ge $not_a_module`. Fixes #16809.
It should have the same result as when called with a module that isn't in core (empty list). |
@karenetheridge I'm not proposing to change the |
Migrated from rt.perl.org#133766 (status was 'open')
Searchable as RT133766$
The text was updated successfully, but these errors were encountered: