Re: bugs? awk resetting separator when modifying $NF

2019-09-30 Thread Solene Rapenne
On Mon, Sep 30, 2019 at 11:06:19AM -0600, Todd C. Miller wrote: > On Mon, 30 Sep 2019 18:53:56 +0200, Solene Rapenne wrote: > > > I'm using OpenBSD -current (snapshots from 28 sept) on amd64. > > I'm not sure this is a bug but I can't find an explanation in the man > > page. > > > > I wanted to

Re: bugs? awk resetting separator when modifying $NF

2019-09-30 Thread Todd C . Miller
On Mon, 30 Sep 2019 18:53:56 +0200, Solene Rapenne wrote: > I'm using OpenBSD -current (snapshots from 28 sept) on amd64. > I'm not sure this is a bug but I can't find an explanation in the man > page. > > I wanted to remove last field of a string using "-" as separator, but > the separator seems

bugs? awk resetting separator when modifying $NF

2019-09-30 Thread Solene Rapenne
Hi, I'm using OpenBSD -current (snapshots from 28 sept) on amd64. I'm not sure this is a bug but I can't find an explanation in the man page. I wanted to remove last field of a string using "-" as separator, but the separator seems to be reset to space ' ' after modifying $NF $ echo