Re: sed(1) and line number 0

2021-08-15 Thread Andreas Kusalananda Kähäri
On Sun, Aug 15, 2021 at 09:52:57PM +0200, Martijn van Duren wrote: > On Sat, 2021-08-14 at 20:20 +0200, Andreas Kusalananda Kähäri wrote: > > On Fri, Aug 13, 2021 at 11:19:16PM +0800, Philippe Meunier wrote: > > > Hello, > > > > > > While porting a shell script from Linux to OpenBSD I came across

Re: sed(1) and line number 0

2021-08-15 Thread Martijn van Duren
On Sat, 2021-08-14 at 20:20 +0200, Andreas Kusalananda Kähäri wrote: > On Fri, Aug 13, 2021 at 11:19:16PM +0800, Philippe Meunier wrote: > > Hello, > > > > While porting a shell script from Linux to OpenBSD I came across the > > following: > [cut] > > 2) Out of curiosity, is there an OpenBSD

Re: wait returns 127 for existing process?

2021-08-15 Thread Andreas Kusalananda Kähäri
On Sun, Aug 15, 2021 at 07:23:53PM +0200, Claus Assmann wrote: > On Sun, Aug 15, 2021, Andreas Kusalananda Khri wrote: > > > wait returns 127 if the process is not a child of the current shell. > > Is it a child process of the current shell? If so, does it install a > > Yes, indirectly via 2-3

Re: wait returns 127 for existing process?

2021-08-15 Thread Claus Assmann
On Sun, Aug 15, 2021, Andreas Kusalananda Khri wrote: > wait returns 127 if the process is not a child of the current shell. > Is it a child process of the current shell? If so, does it install a Yes, indirectly via 2-3 sh scripts. > signal handler for the HUP signal? Yes, the "usual" one for

Re: wait returns 127 for existing process?

2021-08-15 Thread Jeremie Courreges-Anglas
On Sun, Aug 15 2021, Claus Assmann wrote: > I must misunderstand something about wait (sh command), but I'm not > sure what: why does wait return 127 for an existing process? > > $ PM=31309;kill -HUP $PM; echo $?; ps -p $PM; wait $PM; echo $?; ps -p $PM > 0 > PID TT STATTIME COMMAND >

Re: wait returns 127 for existing process?

2021-08-15 Thread Andreas Kusalananda Kähäri
On Sun, Aug 15, 2021 at 10:57:33AM +0200, Claus Assmann wrote: > I must misunderstand something about wait (sh command), but I'm not > sure what: why does wait return 127 for an existing process? > > $ PM=31309;kill -HUP $PM; echo $?; ps -p $PM; wait $PM; echo $?; ps -p $PM > 0 > PID TT STAT

wait returns 127 for existing process?

2021-08-15 Thread Claus Assmann
I must misunderstand something about wait (sh command), but I'm not sure what: why does wait return 127 for an existing process? $ PM=31309;kill -HUP $PM; echo $?; ps -p $PM; wait $PM; echo $?; ps -p $PM 0 PID TT STATTIME COMMAND 31309 p0 S0:00.03 ../libpmilter/t-pmilter-1 -r

Re: using mdnsd as resolver

2021-08-15 Thread Stuart Henderson
On 2021-08-14, Björn Gohla wrote: > hi all, > > i'm trying to use openmdns to find my network printer. it shows up > (sporadically) when i run > > $ mdnsctl browse -r > > and i can obtain the address using > > $ mdnsctl lookup EPSON892A3E.local > > but how do i integrate the mdns daemon into