Re: awk behaviour?

2021-07-29 Thread Stefan Esser
Am 29.07.21 um 18:42 schrieb Michael Butler via freebsd-current: > On 7/29/21 6:09 AM, Michael Gmelin wrote: >> >> >> On Wed, 28 Jul 2021 16:02:30 -0400 >> Ed Maste wrote: >> >>> On Wed, 28 Jul 2021 at 15:15, Michael Butler via freebsd-current >>> wrote: What prompted the question was

Re: awk behaviour?

2021-07-29 Thread Michael Butler via freebsd-current
On 7/29/21 6:09 AM, Michael Gmelin wrote: On Wed, 28 Jul 2021 16:02:30 -0400 Ed Maste wrote: On Wed, 28 Jul 2021 at 15:15, Michael Butler via freebsd-current wrote: What prompted the question was my (obviously poor) attempt to debug and resolve this failure when attempting to build a

Re: awk behaviour?

2021-07-29 Thread Michael Gmelin
On Wed, 28 Jul 2021 16:02:30 -0400 Ed Maste wrote: > On Wed, 28 Jul 2021 at 15:15, Michael Butler via freebsd-current > wrote: > > > > What prompted the question was my (obviously poor) attempt to debug > > and resolve this failure when attempting to build a release for > > i386 on an amd64

Re: awk behaviour?

2021-07-28 Thread Ed Maste
On Wed, 28 Jul 2021 at 15:15, Michael Butler via freebsd-current wrote: > > What prompted the question was my (obviously poor) attempt to debug and > resolve this failure when attempting to build a release for i386 on an > amd64 .. This will be due to my 4e224e4be7c3. I'm not sure exactly what's

Re: awk behaviour?

2021-07-28 Thread Warner Losh
On Wed, Jul 28, 2021 at 1:12 PM Michael Butler wrote: > On 7/28/21 1:36 PM, Warner Losh wrote: > > On Wed, Jul 28, 2021 at 11:31 AM Michael Butler via freebsd-current < > > freebsd-current@freebsd.org> wrote: > > > >> I tripped over this while trying to build a local release .. > >> > >>

Re: awk behaviour?

2021-07-28 Thread Michael Butler via freebsd-current
On 7/28/21 1:36 PM, Warner Losh wrote: On Wed, Jul 28, 2021 at 11:31 AM Michael Butler via freebsd-current < freebsd-current@freebsd.org> wrote: I tripped over this while trying to build a local release .. imb@toshi:/home/imb> pkg --version | awk -F. '{print $$1 * 1 + $$2 * 100 + $$3}'

Re: awk behaviour?

2021-07-28 Thread Michael Gmelin
On Wed, 28 Jul 2021 13:29:20 -0400 Michael Butler via freebsd-current wrote: > I tripped over this while trying to build a local release .. > > imb@toshi:/home/imb> pkg --version | awk -F. '{print $$1 * 1 + > $$2 * 100 + $$3}' > 10001 > > imb@toshi:/home/imb> pkg --version > 1.17.1 >

Re: awk behaviour?

2021-07-28 Thread Warner Losh
On Wed, Jul 28, 2021 at 11:31 AM Michael Butler via freebsd-current < freebsd-current@freebsd.org> wrote: > I tripped over this while trying to build a local release .. > > imb@toshi:/home/imb> pkg --version | awk -F. '{print $$1 * 1 + $$2 * > 100 + $$3}' > 10001 > > imb@toshi:/home/imb> pkg

Re: awk behaviour?

2021-07-28 Thread Michael Butler via freebsd-current
NVM .. it's the escaping of '$' .. On 7/28/21 1:29 PM, Michael Butler via freebsd-current wrote: I tripped over this while trying to build a local release .. imb@toshi:/home/imb> pkg --version | awk -F. '{print $$1 * 1 + $$2 * 100 + $$3}' 10001 imb@toshi:/home/imb> pkg --version 1.17.1

awk behaviour?

2021-07-28 Thread Michael Butler via freebsd-current
I tripped over this while trying to build a local release .. imb@toshi:/home/imb> pkg --version | awk -F. '{print $$1 * 1 + $$2 * 100 + $$3}' 10001 imb@toshi:/home/imb> pkg --version 1.17.1 Is this expected? imb