-
Notifications
You must be signed in to change notification settings - Fork 153
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
listdeps --cpanm-versions returns the version number not in the documented format #725
Comments
cpanm does provide one example using quotes, suggesting that quotes are supported everywhere: |
Two actually: it also says: Does cpm support these two literal examples that cpanm references? |
cpanm's example using quotes is a shell command, and the shell will remove the quotes as part of its parsing; they are in the example because they are required to pass it as a single shell argument. |
Interesting, I would have thought that embedded quotes would be preserved by the shell, but indeed they aren't:
So, why isn't cpm also receiving the arguments with the quotes stripped? If the dzil output is piped to cpm just as it is to cpanm, everything should work fine. Is cpm being invoked differently? |
As a point of comparison, in my installdeps command I must form the argument without quotes because it is then quoted as a shell argument, which would preserve the quotes when passed through the shell. https://github.com/Grinnz/Dist-Zilla-App-Command-installdeps/blob/master/lib/Dist/Zilla/App/Command/installdeps.pm#L103 |
When it is piped to xargs the quotes are removed, when piped to |
This came up in skaji/cpm#245.
https://metacpan.org/pod/cpanm#COMMANDS documents the version without any quoting, https://metacpan.org/pod/CPAN::Meta::Spec neither.
cpm fails if the version is surrounded by quotes as
dzil listdeps --cpanm-versions
returns.The text was updated successfully, but these errors were encountered: