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

s2p doesn't understand sed anymore #11322

Closed
p5pRT opened this issue May 8, 2011 · 6 comments
Closed

s2p doesn't understand sed anymore #11322

p5pRT opened this issue May 8, 2011 · 6 comments

Comments

@p5pRT
Copy link

@p5pRT p5pRT commented May 8, 2011

Migrated from rt.perl.org#90134 (status was 'rejected')

Searchable as RT90134$

@p5pRT
Copy link
Author

@p5pRT p5pRT commented May 8, 2011

From tchrist@perl.com

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
  .

@p5pRT
Copy link
Author

@p5pRT p5pRT commented Jan 5, 2012

From @cpansprout

On Sun May 08 15​:25​:07 2011, tom christiansen wrote​:

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

@p5pRT
Copy link
Author

@p5pRT p5pRT commented Jan 5, 2012

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

@p5pRT
Copy link
Author

@p5pRT p5pRT commented Dec 11, 2017

From zefram@fysh.org

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

@p5pRT
Copy link
Author

@p5pRT p5pRT commented Dec 18, 2017

From @xsawyerx

On Sun, 10 Dec 2017 20​:13​:40 -0800, zefram@​fysh.org wrote​:

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 Leont/app-s2p#2.

@p5pRT p5pRT closed this as completed Dec 18, 2017
@p5pRT
Copy link
Author

@p5pRT p5pRT commented Dec 18, 2017

@xsawyerx - Status changed from 'open' to 'rejected'

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