Bug#592727: perl-doc: perlrun incorrectly specifies <> on special arguments such as '>file'
Vincent Lefevre
vincent at vinc17.net
Thu Aug 12 11:42:00 UTC 2010
Package: perl-doc
Version: 5.10.1-14
Severity: normal
The perlrun man page should clearly say what happens with <> when
there is a special argument such as '>file'.
Under the -n option, one can read:
Also note that "<>" passes command line arguments to "open" in
perlfunc, which doesn't necessarily interpret them as file names.
See perlop for possible security implications.
But this is more general. Moreover this behavior doesn't seem to
occur when the -i option is used (probably as a side effect due
to the renaming), and this should be documented.
In particular, due to that, the equivalence given later under the -i
option doesn't apply on such special arguments.
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/8 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.ISO8859-1 (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash
Versions of packages perl-doc depends on:
ii perl 5.10.1-14 Larry Wall's Practical Extraction
perl-doc recommends no packages.
Versions of packages perl-doc suggests:
ii groff 1.20.1-10 GNU troff text-formatting system
ii man-db [man-browser] 2.5.7-3 on-line manual pager
-- no debconf information
More information about the Perl-maintainers
mailing list