From owner-freebsd-current@freebsd.org Fri Aug 18 13:26:20 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5387DDE17F2 for ; Fri, 18 Aug 2017 13:26:20 +0000 (UTC) (envelope-from jamie@catflap.org) Received: from donotpassgo.dyslexicfish.net (donotpassgo.dyslexicfish.net [IPv6:2001:19f0:300:2185:a:dead:bad:faff]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B32BB37BE for ; Fri, 18 Aug 2017 13:26:19 +0000 (UTC) (envelope-from jamie@catflap.org) Received: from donotpassgo.dyslexicfish.net (donotpassgo.dyslexicfish.net [104.207.135.49]) by donotpassgo.dyslexicfish.net (8.14.5/8.14.5) with ESMTP id v7IDQH84058029; Fri, 18 Aug 2017 14:26:18 +0100 (BST) (envelope-from jamie@donotpassgo.dyslexicfish.net) Received: (from jamie@localhost) by donotpassgo.dyslexicfish.net (8.14.5/8.14.5/Submit) id v7IDQHFd058028; Fri, 18 Aug 2017 14:26:17 +0100 (BST) (envelope-from jamie) From: Jamie Landeg-Jones Message-Id: <201708181326.v7IDQHFd058028@donotpassgo.dyslexicfish.net> Date: Fri, 18 Aug 2017 14:26:17 +0100 Organization: Dyslexic Fish To: kiri@kx.openedu.org, freebsd-current@freebsd.org Subject: Re: BSD awk bug ? References: <201708160114.v7G1EkxS079546@kx.openedu.org> <20170816013634.GA8152@tomoyat1.com> <201708160315.v7G3FlAV081765@kx.openedu.org> In-Reply-To: <201708160315.v7G3FlAV081765@kx.openedu.org> User-Agent: Heirloom mailx 12.4 7/29/08 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (donotpassgo.dyslexicfish.net [104.207.135.49]); Fri, 18 Aug 2017 14:26:18 +0100 (BST) X-Mailman-Approved-At: Fri, 18 Aug 2017 15:05:44 +0000 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Aug 2017 13:26:20 -0000 KIRIYAMA Kazuhiko wrote: > Oops. I missed "STANDARDS" section. Thanks for pointed out. > > # But as it says in front "awk supports extended regular > # expressions (EREs). See re_format(7) for more information > # on regular expressions.", I'd like to coinside with > # re_format(7) spec. > > > > > Someone please correct me if I'm wrong. I agree. It's a pain in the arse. In these situations, I've had to use gawk instead (You can set POSIXLY_CORRECT in gawk if it helps you feel cleaner! :-) ) There is also 'mawk' in ports/lang, but I've never tried that. Cheers, Jamie