Front page | perl.perl5.porters |
Postings from February 2000
patch for find2perl -eval documentation error
From:
David Dyck
Date:
February 27, 2000 14:45
Subject:
patch for find2perl -eval documentation error
Message ID:
Pine.LNX.4.05.10002271443400.11444-100000@dd.tc.fluke.com
I tried to submit this via perlbug, but didn't receive
any confirmation as expected
---------- Forwarded message ----------
Date: Sat, 26 Feb 2000 16:41:07 -0800
From: David Dyck <dcd@tc.fluke.com>
To: perlbug@perl.com
Subject: find2perl -eval documentation error (with patch)
This is a bug report for perl from dcd@tc.fluke.com,
generated with the help of perlbug 1.27 running under perl v5.5.660.
-----------------------------------------------------------------
[Please enter your report here]
from the find2perl man page
`-eval EXPR ;'
Has the perl script eval() the EXPR. The `;' must be
passed as a distinct argument, so it may need to be
surrounded by whitespace and/or quoted from interpre<AD>
tation by the shell using a backslash (just as with
using `find(1)').
$ find2perl . -depth -eval print \;
Unrecognized switch: ;
The -exec code process args while (@ARGV && $ARGV[0] ne ';')
the -eval is just expecting one $prog to be shifted
from the args and does not expect a ';'
Here's a patch to remove the incorrect documentation
*** perl5.5.660/x2p/find2perl.PL.orig Sat Feb 26 16:37:26 2000
--- perl5.5.660/x2p/find2perl.PL Sat Feb 26 16:38:15 2000
***************
*** 844,853 ****
=item C<-eval EXPR ;>
! Has the perl script eval() the EXPR. The C<;> must be passed as
! a distinct argument, so it may need to be surrounded by whitespace and/or
! quoted from interpretation by the shell using a backslash (just as with
! using C<find(1)>).
=item C<-ls>
--- 844,850 ----
=item C<-eval EXPR ;>
! Has the perl script eval() the EXPR.
=item C<-ls>
[Please do not change anything below this line]
-----------------------------------------------------------------
---
Site configuration information for perl v5.5.660:
Configured by dcd at Thu Feb 24 09:54:36 PST 2000.
Summary of my perl5 (revision 5.0 version 5 subversion 660) configuration:
Platform:
osname=linux, osvers=2.2.15pre10, archname=i686-linux
uname='linux dd 2.2.15pre10 #2 thu feb 24 09:36:58 pst 2000 i686 '
config_args='-Doptimize=-g -de -Dcf_email=dcd@tc.fluke.com'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef
usesocks=undef useperlio=undef d_sfio=undef
use64bits=undef uselargefiles=define usemultiplicity=undef
Compiler:
cc='cc', optimize='-g', gccversion=2.7.2.3
cppflags='-DDEBUGGING -I/usr/local/include'
ccflags ='-DDEBUGGING -I/usr/local/include'
stdchar='char', d_stdstdio=define, usevfork=false
intsize=4, longsize=4, ptrsize=4, doublesize=8
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=4
alignbytes=4, usemymalloc=n, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lgdbm -ldbm -ldb -ldl -lm -lc
libc=/lib/libc.so.5.4.44, so=so, useshrplib=false, libperl=libperl.a
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'
Locally applied patches:
---
@INC for perl v5.5.660:
/usr/local/lib/perl5/5.5.660/i686-linux
/usr/local/lib/perl5/5.5.660
/usr/local/lib/perl5/site_perl/5.5.660/i686-linux
/usr/local/lib/perl5/site_perl/5.5.660
/usr/local/lib/perl5/site_perl
.
---
Environment for perl v5.5.660:
HOME=/home/dcd
LANG (unset)
LANGUAGE (unset)
LD_LIBRARY_PATH (unset)
LOGDIR (unset)
PATH=/home/dcd/bin:/sbin:/usr/local/bin:/bin:/usr/bin:/usr/X11/bin:/usr/games:/usr/local/samba:/home/hobbes/tools/scripts:/home/hobbes/tools/linux:/usr0/hobbes/tools/scripts:/usr0/dcd/bin:/apps/general/bin:/usr/public
PERL_BADLANG (unset)
SHELL=/bin/bash
-
patch for find2perl -eval documentation error
by David Dyck