From owner-freebsd-questions@freebsd.org Sat Nov 30 00:29:07 2019 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 D38611C13E5 for ; Sat, 30 Nov 2019 00:29:07 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from blaine.gmane.org (195-159-176-226.customer.powertech.no [195.159.176.226]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47Psgk65llz4Stf for ; Sat, 30 Nov 2019 00:29:06 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1iaqOW-0005cx-KP for freebsd-questions@freebsd.org; Sat, 30 Nov 2019 01:13:52 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Jonesy Subject: grep -b, --byte-offset returns 0 Message-ID: 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: 47Psgk65llz4Stf X-Spamd-Bar: ++++++ X-Spamd-Result: default: False [6.57 / 15.00]; ARC_NA(0.00)[]; GREYLIST(0.00)[pass,body]; FROM_HAS_DN(0.00)[]; HFILTER_HOSTNAME_1(0.50)[195-159-176-226.customer.powertech.no]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; NEURAL_SPAM_MEDIUM(1.00)[0.996,0]; RCPT_COUNT_ONE(0.00)[1]; RCVD_TLS_LAST(0.00)[]; NEURAL_SPAM_LONG(1.00)[0.999,0]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[SPAM_TRAP_gmane@jonz.net,freebsd-questions@m.gmane.org]; DMARC_POLICY_REJECT(2.00)[jonz.net : No valid SPF, No valid DKIM,reject]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:2116, ipnet:195.159.0.0/16, country:NO]; FROM_NEQ_ENVFROM(0.00)[SPAM_TRAP_gmane@jonz.net,freebsd-questions@m.gmane.org]; IP_SCORE(1.37)[ipnet: 195.159.0.0/16(4.15), asn: 2116(2.71), country: NO(-0.01)]; RCVD_COUNT_TWO(0.00)[2] X-Spam: Yes X-Mailman-Approved-At: Fri, 31 Jan 2020 18:03:45 +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: , Date: Sat, 30 Nov 2019 00:29:07 -0000 X-Original-Date: Sat, 30 Nov 2019 00:13:46 -0000 (UTC) X-List-Received-Date: Sat, 30 Nov 2019 00:29:07 -0000 (I'm not sure if I can post to this list via nntp/gmane...) 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. :-) Can someone confirm my findings? Thank you, Jonesy -- Marvin L Jones | Marvin | W3DHJ.net | linux 38.238N 104.547W | @ jonz.net | Jonesy | FreeBSD * Killfiling google & XXXXbanter.com: jonz.net/ng.htm