From owner-freebsd-questions@freebsd.org Fri Jan 31 21:49:12 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2E1241EE0ED for ; Fri, 31 Jan 2020 21:49:12 +0000 (UTC) (envelope-from freebsd-questions@m.gmane-mx.org) Received: from ciao.gmane.io (ciao.gmane.io [159.69.161.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 488W865cqSz4GrR for ; Fri, 31 Jan 2020 21:49:10 +0000 (UTC) (envelope-from freebsd-questions@m.gmane-mx.org) Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1ixe9v-000U7E-9G for freebsd-questions@freebsd.org; Fri, 31 Jan 2020 22:49:03 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Jonesy Subject: Re: grep -b, --byte-offset returns 0 Date: Fri, 31 Jan 2020 21:48:59 -0000 (UTC) Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit User-Agent: slrn/1.0.3 (FreeBSD) X-Rspamd-Queue-Id: 488W865cqSz4GrR X-Spamd-Bar: + X-Spamd-Result: default: False [1.83 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.54)[-0.536,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_TLS_LAST(0.00)[]; MV_CASE(0.50)[]; NEURAL_SPAM_LONG(0.05)[0.052,0]; DMARC_POLICY_REJECT(2.00)[jonz.net : SPF not aligned (strict), No valid DKIM,reject]; FORGED_SENDER(0.30)[SPAM_TRAP_gmane@jonz.net,freebsd-questions@m.gmane-mx.org]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:159.69.0.0/16, country:DE]; FROM_NEQ_ENVFROM(0.00)[SPAM_TRAP_gmane@jonz.net,freebsd-questions@m.gmane-mx.org]; IP_SCORE(-0.19)[ipnet: 159.69.0.0/16(0.63), asn: 24940(-1.55), country: DE(-0.02)]; RCVD_COUNT_TWO(0.00)[2] X-Mailman-Approved-At: Sat, 01 Feb 2020 08:40:27 +0000 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Jan 2020 21:49:12 -0000 On Sat, 30 Nov 2019 00:13:46 -0000 (UTC), Jonesy via freebsd-questions wrote: > > grep'ping for a byte offset always returns 0 for the result. > Searching "FreeBSD Bugzilla – Bug List" shows no other reports. > > Ubuntu 16.04: > > jonesy@nix5:~$ a='now is the time for all good men to come to the aid of the party' > jonesy@nix5:~$ echo $a | grep -b -o good > 24:good > > FreeBSD 12.1 > > [jonz~]a='now is the time for all good men to come to the aid of the party' > [jonz~]echo $a | grep -b -o good > 0:good > > I have just now created a login at bugs.freebsd.org/bugzilla/ > and reported this bug there, but I am unsure if I did it all > correctly. :-) As the OP, I probably should have posted the bugzilla URL for the archive: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242308 Jonesy -- Marvin L Jones | Marvin | W3DHJ.net | linux 38.238N 104.547W | @ jonz.net | Jonesy | FreeBSD * Killfiling google & XXXXbanter.com: jonz.net/ng.htm