Skip Menu |
Report information
Id: 90134
Status: rejected
Priority: 0/
Queue: perl5

Owner: Nobody
Requestors: tom christiansen <tchrist [at] perl.com>
Cc:
AdminCc:

Operating System: All
PatchStatus: (no value)
Severity: low
Type: utilities
Perl Version: 5.12.3
Fixed In: (no value)



Subject: s2p doesn't understand sed anymore
Date: Sun, 08 May 2011 16:24:48 -0600
To: perlbug [...] perl.org
From: Tom Christiansen <tchrist [...] perl.com>
Download (untitled) / with headers
text/plain 2.6k
This is accepted by sed: % sed -ne 'G; s/\n/&&/; /^\([ ~-]*\n\).*\n\1/d; s/\n//; h;' But not by s2p: % s2p -ne 'G; s/\n/&&/; /^\([ ~-]*\n\).*\n\1/d; s/\n//; h;' s2p: expression #1: extra characters after command (; s/\n/&&/; /^\([ ~-]*\n\).*\n\1/d; s/\n//; h;) Exit 1 % s2p -ne 'G;s/\n/&&/;/^\([ ~-]*\n\).*\n\1/d;s/\n//;h;' s2p: expression #1: extra characters after command (;s/\n/&&/;/^\([ ~-]*\n\).*\n\1/d;s/\n//;h;) Exit 1 --tom Summary of my perl5 (revision 5 version 12 subversion 3) configuration: Platform: osname=openbsd, osvers=4.4, archname=OpenBSD.i386-openbsd uname='openbsd chthon 4.4 generic#0 i386 ' config_args='-des' hint=recommended, useposix=true, d_sigaction=define useithreads=undef, usemultiplicity=undef useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef use64bitint=undef, use64bitall=undef, uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cc', ccflags ='-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include', optimize='-O2', cppflags='-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include' ccversion='', gccversion='3.3.5 (propolice)', gccosandvers='openbsd4.4' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=4, prototype=define Linker and Libraries: ld='cc', ldflags ='-Wl,-E -fstack-protector -L/usr/local/lib' libpth=/usr/local/lib /usr/lib libs=-lgdbm -lm -lutil -lc perllibs=-lm -lutil -lc libc=/usr/lib/libc.so.48.0, so=so, useshrplib=false, libperl=libperl.a gnulibc_version='' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' ' cccdlflags='-DPIC -fPIC ', lddlflags='-shared -fPIC -L/usr/local/lib -fstack-protector' Characteristics of this binary (from libperl): Compile-time options: PERL_DONT_CREATE_GVSV PERL_MALLOC_WRAP USE_LARGE_FILES USE_PERLIO USE_PERL_ATOF Built under openbsd Compiled at Feb 14 2011 07:32:03 %ENV: PERL_UNICODE="SA" @INC: /usr/local/lib/perl5/site_perl/5.12.3/OpenBSD.i386-openbsd /usr/local/lib/perl5/site_perl/5.12.3 /usr/local/lib/perl5/5.12.3/OpenBSD.i386-openbsd /usr/local/lib/perl5/5.12.3 /usr/local/lib/perl5/site_perl/5.11.3 /usr/local/lib/perl5/site_perl/5.10.1 /usr/local/lib/perl5/site_perl/5.10.0 /usr/local/lib/perl5/site_perl/5.8.7 /usr/local/lib/perl5/site_perl/5.8.0 /usr/local/lib/perl5/site_perl/5.6.0 /usr/local/lib/perl5/site_perl/5.005 /usr/local/lib/perl5/site_perl .
RT-Send-CC: perl5-porters [...] perl.org
Download (untitled) / with headers
text/plain 629b
On Sun May 08 15:25:07 2011, tom christiansen wrote: Show quoted text
> This is accepted by sed: > > % sed -ne 'G; s/\n/&&/; /^\([ ~-]*\n\).*\n\1/d; s/\n//; h;' > > But not by s2p: > > % s2p -ne 'G; s/\n/&&/; /^\([ ~-]*\n\).*\n\1/d; s/\n//; h;' > s2p: expression #1: extra characters after command (; s/\n/&&/; > /^\([ ~-]*\n\).*\n\1/d; s/\n//; h;) > Exit 1 > > % s2p -ne 'G;s/\n/&&/;/^\([ ~-]*\n\).*\n\1/d;s/\n//;h;' > s2p: expression #1: extra characters after command > (;s/\n/&&/;/^\([ ~-]*\n\).*\n\1/d;s/\n//;h;) > Exit 1
Is this a regression, or new sed syntax that postdates s2p? -- Father Chrysostomos
From: Zefram <zefram [...] fysh.org>
Subject: Re: [perl #90134] s2p doesn't understand sed anymore
Date: Mon, 11 Dec 2017 04:13:21 +0000
To: perl5-porters [...] perl.org
Download (untitled) / with headers
text/plain 148b
s2p was ejected from the Perl core some time ago. This ticket should be closed, and a similar one opened against the CPAN distro App-s2p. -zefram
RT-Send-CC: perl5-porters [...] perl.org
Download (untitled) / with headers
text/plain 252b
On Sun, 10 Dec 2017 20:13:40 -0800, zefram@fysh.org wrote: Show quoted text
> s2p was ejected from the Perl core some time ago. This ticket should > be closed, and a similar one opened against the CPAN distro App-s2p.
Opened https://github.com/Leont/app-s2p/issues/2.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org