Re: sed '\n\nnd'

2020-03-26 Thread Geoff Clare
Oğuz wrote, on 25 Mar 2020: > > echo n | sed '\n\nnd' > > Above command returns 'n' with GNU sed, and nothing with BSD seds and > OmniOS sed. The standard says > > >- > >In a context address, the construction "\cBREc", where *c* is any >character other than or , shall be ident

Re: sed '\n\nnd'

2020-03-26 Thread Oğuz
> Given that implementations differ, we should probably make the > behaviour explicitly unspecified. But this might be a bug in GNU's implementation. $ echo t | sed 'st\ttt' | xxd : 0a . $ $ echo n | sed 'sn\nnn' | xxd : 6e

Re: sed '\n\nnd'

2020-03-26 Thread Geoff Clare
Oğuz wrote, on 26 Mar 2020: > > > Given that implementations differ, we should probably make the > > behaviour explicitly unspecified. > > But this might be a bug in GNU's implementation. > [...] > > Personally, I think BSD sed's behavior should be standardized and GNU > would not object to tha

Re: sed '\n\nnd'

2020-03-26 Thread Joerg Schilling
O?uz wrote: > > Given that implementations differ, we should probably make the > > behaviour explicitly unspecified. > > But this might be a bug in GNU's implementation. Why should a behavior that is aligned with the classical UNIX behavior (Solaris) be buggy? Jörg -- EMail:jo...@schily.net

Re: sed '\n\nnd'

2020-03-26 Thread Joerg Schilling
Geoff Clare wrote: > Solaris and HP-UX output "n" the same as GNU sed. Sou you verified what I assumed from the fact that Solaris, AIX and HP-UX are based on a common source from the i18n project. Jörg -- EMail:jo...@schily.net(home) Jörg Schilling D-13353 Berlin joe

Re: sed '\n\nnd'

2020-03-26 Thread Oğuz
26 Mart 2020 Perşembe tarihinde Joerg Schilling < joerg.schill...@fokus.fraunhofer.de> yazdı: > O?uz wrote: > > > > Given that implementations differ, we should probably make the > > > behaviour explicitly unspecified. > > > > But this might be a bug in GNU's implementation. > > Why should a beha

Re: sed '\n\nnd'

2020-03-26 Thread shwaresyst
Sorry, I was confusing the 'd' command, thinking 'display', for the 'l' command. Since stdout is supposed to echo after processing, I did have it reversed; if the gnu version echos the 'n' it probably wasn't 'delete'd, and for the others it likely was. On Wednesday, March 25, 2020 Harald van D

Re: sed '\n\nnd'

2020-03-26 Thread Robert Elz
Date:Thu, 26 Mar 2020 09:11:16 + From:Geoff Clare Message-ID: <20200326091116.GB22632@lt2.masqnet> | Given that implementations differ, we should probably make the | behaviour explicitly unspecified. I'd agree with that - it isn't as though it really matters

[1003.1(2016)/Issue7+TC2 0001318]: Define close-on-fork flag

2020-03-26 Thread Austin Group Bug Tracker
A NOTE has been added to this issue. == https://austingroupbugs.net/view.php?id=1318 == Reported By:nate_karstens Assigned To: