Skip to content
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

[PATCH] Typo in -c section of perldoc perlrun #15616

Closed
p5pRT opened this issue Sep 20, 2016 · 5 comments
Closed

[PATCH] Typo in -c section of perldoc perlrun #15616

p5pRT opened this issue Sep 20, 2016 · 5 comments

Comments

@p5pRT
Copy link

p5pRT commented Sep 20, 2016

Migrated from rt.perl.org#129313 (status was 'resolved')

Searchable as RT129313$

@p5pRT
Copy link
Author

p5pRT commented Sep 20, 2016

From catchperl@33k.co.uk

Created by catchperl@33k.co.uk

A typo in the -c section of perldoc perlrun
'and' appears instead of 'any'

Perl Info

Flags:
    category=docs
    severity=low
    Type=Patch
    PatchStatus=HasPatch

Site configuration information for perl 5.25.5:

Configured by shumphrey at Tue Sep 20 12:28:25 BST 2016.

Summary of my perl5 (revision 5 version 25 subversion 5) configuration:
  Commit id: edc2c47a7af2b67f9541072b69a97b21f56cdcd4
  Platform:
    osname=linux
    osvers=4.4.0-36-generic
    archname=x86_64-linux
    uname='linux orca 4.4.0-36-generic #55-ubuntu smp thu aug 11 18:01:55 utc 2016 x86_64 x86_64 x86_64 gnulinux '
    config_args='-des -Dusedevel'
    hint=recommended
    useposix=true
    d_sigaction=define
    useithreads=undef
    usemultiplicity=undef
    use64bitint=define
    use64bitall=define
    uselongdouble=undef
    usemymalloc=n
    bincompat5005=undef
  Compiler:
    cc='cc'
    ccflags ='-fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
    optimize='-O2'
    cppflags='-fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include'
    ccversion=''
    gccversion='5.4.0 20160609'
    gccosandvers=''
    intsize=4
    longsize=8
    ptrsize=8
    doublesize=8
    byteorder=12345678
    doublekind=3
    d_longlong=define
    longlongsize=8
    d_longdbl=define
    longdblsize=16
    longdblkind=3
    ivtype='long'
    ivsize=8
    nvtype='double'
    nvsize=8
    Off_t='off_t'
    lseeksize=8
    alignbytes=8
    prototype=define
  Linker and Libraries:
    ld='cc'
    ldflags =' -fstack-protector-strong -L/usr/local/lib'
    libpth=/usr/local/lib /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed /usr/include/x86_64-linux-gnu /usr/lib /lib/x86_64-linux-gnu /lib/../lib /usr/lib/x86_64-linux-gnu /usr/lib/../lib /lib /lib64 /usr/lib64
    libs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
    perllibs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
    libc=libc-2.23.so
    so=so
    useshrplib=false
    libperl=libperl.a
    gnulibc_version='2.23'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs
    dlext=so
    d_dlsymun=undef
    ccdlflags='-Wl,-E'
    cccdlflags='-fPIC'
    lddlflags='-shared -O2 -L/usr/local/lib -fstack-protector-strong'



@INC for perl 5.25.5:
    lib
    /usr/local/lib/perl5/site_perl/5.25.5/x86_64-linux
    /usr/local/lib/perl5/site_perl/5.25.5
    /usr/local/lib/perl5/5.25.5/x86_64-linux
    /usr/local/lib/perl5/5.25.5


Environment for perl 5.25.5:
    HOME=/home/shumphrey
    LANG=en_GB.UTF-8
    LANGUAGE=en_GB:en
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/home/shumphrey/.ndenv/shims:/home/shumphrey/.ndenv/bin:/opt/perl5/bin:/opt/perl5/perls/perl-5.25.4/bin:/home/shumphrey/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/shumphrey/bin:/home/shumphrey/bin/packer
    PERLBREW_BASHRC_VERSION=0.75
    PERLBREW_HOME=/home/shumphrey/.perlbrew
    PERLBREW_MANPATH=/opt/perl5/perls/perl-5.25.4/man
    PERLBREW_PATH=/opt/perl5/bin:/opt/perl5/perls/perl-5.25.4/bin
    PERLBREW_PERL=perl-5.25.4
    PERLBREW_ROOT=/opt/perl5
    PERLBREW_VERSION=0.75
    PERL_BADLANG (unset)
    PERL_CPANM_OPT=--prompt
    SHELL=/bin/zsh

@p5pRT
Copy link
Author

p5pRT commented Sep 20, 2016

From catchperl@33k.co.uk

0001-Fix-typo-in-perlrun.pod.patch
From 93bbacdf31d94cf6b56e205b6b137d27ac6adeaa Mon Sep 17 00:00:00 2001
From: Steven Humphrey <catchperl@33k.co.uk>
Date: Tue, 20 Sep 2016 12:42:39 +0100
Subject: [PATCH] Fix typo in perlrun.pod

s/and/any/
perl -c documentation has a typo when talking about BEGIN blocks.
---
 pod/perlrun.pod | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pod/perlrun.pod b/pod/perlrun.pod
index 12cba35..9d59a6a 100644
--- a/pod/perlrun.pod
+++ b/pod/perlrun.pod
@@ -345,7 +345,7 @@ You can also use binmode() to set the encoding of an I/O stream.
 X<-c>
 
 causes Perl to check the syntax of the program and then exit without
-executing it.  Actually, it I<will> execute and C<BEGIN>, C<UNITCHECK>,
+executing it.  Actually, it I<will> execute any C<BEGIN>, C<UNITCHECK>,
 or C<CHECK> blocks and any C<use> statements: these are considered as
 occurring outside the execution of your program.  C<INIT> and C<END>
 blocks, however, will be skipped.
-- 
2.9.3

@p5pRT
Copy link
Author

p5pRT commented Sep 21, 2016

From @jkeenan

On Tue Sep 20 04​:47​:55 2016, catchperl@​33k.co.uk wrote​:

This is a bug report for perl from catchperl@​33k.co.uk,
generated with the help of perlbug 1.40 running under perl 5.25.5.

-----------------------------------------------------------------
[Please describe your issue here]

A typo in the -c section of perldoc perlrun
'and' appears instead of 'any'

Thanks for spotting that. Applied to blead in commit 2c4188f.

As this typo was introduced in commit f4750da on 2011-05-02, it is eligible for backporting to the next point release of perl-5.24.

--
James E Keenan (jkeenan@​cpan.org)

@p5pRT
Copy link
Author

p5pRT commented Sep 21, 2016

The RT System itself - Status changed from 'new' to 'open'

@p5pRT
Copy link
Author

p5pRT commented Sep 21, 2016

@jkeenan - Status changed from 'open' to 'resolved'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant