Bug#127997: perl: Text::ParseWords::shellwords allows single quote char to be backslash-escaped inside single quotes (unlike shell)
Niko Tyni
ntyni at debian.org
Thu Nov 4 13:19:48 UTC 2010
tag 127997 moreinfo
thanks
On Sun, Jan 06, 2002 at 01:36:26AM -0900, Britton Leo Kerin wrote:
> Package: perl
> Version: 5.6.1-6
> Severity: minor
>
> I sort of like this bug, but it's not how sh works.
Sorry for the lack of action on this.
I can't reproduce this; with Text-ParseWords 3.2 that shipped with perl 5.6.1:
% perl -Ilib -MText::ParseWords -le "my @a = shellwords(qq(echo 'ab \' c')); print scalar @a"
0
% perl -Ilib -MText::ParseWords -le "my @a = shellwords(qq(echo 'ab c')); print scalar @a"
2
which IMO shows that the backslash-escaped single quote char in the first
example made the parsing fail. I think this is the expected behaviour.
This is also the case with current Text-ParseWords versions.
Please let me know if I can close this bug.
Thanks,
--
Niko Tyni ntyni at debian.org
More information about the Perl-maintainers
mailing list