From owner-freebsd-stable@freebsd.org Wed Mar 22 14:45:41 2017 Return-Path: Delivered-To: freebsd-stable@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 437EAD17CA9 for ; Wed, 22 Mar 2017 14:45:41 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from mail-qt0-x234.google.com (mail-qt0-x234.google.com [IPv6:2607:f8b0:400d:c0d::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EEB8D1E74; Wed, 22 Mar 2017 14:45:40 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: by mail-qt0-x234.google.com with SMTP id i34so154690585qtc.0; Wed, 22 Mar 2017 07:45:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=2lTvVSFRDAXFwenhxbQgpGWrt2f5zzzEOxYUNHly6Do=; b=lfu39drwHPR1+Ap5JYRyW0cGc83171LwkzM/0gELF000T+itgIQM3024X1cEvOuCyU 4Wtp/sO/+J66vPQ5T1NDyEIyr/GQo1a+ABW9qycQSiB2im4u+uNUjJHTAZQyO9AwIv7p pIP/LQs2tZRhDbljPTC/A1NAxnJVgOFPCIWt/GfWw/CxoDIfYK/OeuIU3o82vehOOiWR wCtndCpctGET4zYS/SExuudX1craTMrOo2ttJfaseU2TOe8BuYGuDZrr8Xvv3EbgBAtH pu6gvPM8n84bB4R2auf7Solae6G55tOlPCWUW83bYnndy1sKYfxFgcTErxscRoeFkj6X VYZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=2lTvVSFRDAXFwenhxbQgpGWrt2f5zzzEOxYUNHly6Do=; b=q03sQKnlNhuXX6qr9tF/e847YCCSMHXXwR3UoqQ+yYY01cXcl5kcKj34CKcGo6S6TV cGxDFJHn5GdRg7qyOfht020HPswBXDOfsdyhs3DdIu9NqV+xIq8vtrqCkx0+ujzQDODj eSQ9kgSFoPgZCSYUPjq81OEIlcSgAdjNT48UNHqV9Dit6a6gwJuWBpymCfdDw0PA4IyP 7+4Wo4eQYlVGbjwtftZjDghljGt4nHrb7463H/OLbLX+wIgpesmIWn5kldUo5l1beg5+ Hg8h1nj5kRL0JyqS2pQ6yxDWHfU08wCX45Fl8MWxxal/ft1IxNH7u3jLoa5KsLFLTc9g iizw== X-Gm-Message-State: AFeK/H3Kx9iVGQqB7PBo7fsOiXNJ4EgSGEjKB06W3fzV5hDSJxZTHzC/99Yu18VGO2/pVFCxRLXdY8p5TuV95g== X-Received: by 10.200.48.244 with SMTP id w49mr38509994qta.77.1490193938983; Wed, 22 Mar 2017 07:45:38 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.28.202 with HTTP; Wed, 22 Mar 2017 07:45:38 -0700 (PDT) In-Reply-To: <201703221241.v2MCfQ8R036897@dyslexicfish.net> References: <201703220233.v2M2X8Jg033781@dyslexicfish.net> <201703220354.v2M3sgKO034696@dyslexicfish.net> <201703221241.v2MCfQ8R036897@dyslexicfish.net> From: Freddie Cash Date: Wed, 22 Mar 2017 07:45:38 -0700 Message-ID: Subject: Re: Freebsd 11 - /usr/bin missing [xl]zgrep/zegrep/zfgrep To: Jamie Landeg-Jones Cc: kevans91@ksu.edu, emaste@freebsd.org, jamie@catflap.org, FreeBSD Stable Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Mar 2017 14:45:41 -0000 On Wed, Mar 22, 2017 at 5:41 AM, Jamie Landeg-Jones wrote: > Kyle Evans wrote: > > > Ah, I see what you mean. I've no idea on the history here, but I > > believe the idea is that if I invoke one of these other links (zgrep, > > egrep, ...) I'm expecting it to be actually be grep(1) based purely on > > the name, and I don't consider bsdgrep(1) to be installed for anything > > but a courtesy. > > > > For grep(1) to be GNU grep while xzgrep to secretly be a link to BSD > > grep would be quite surprising to me as a user/admin, especially since > > there are very real output and argument differences between the two. > > This argument can be furthered by imagining the awkwardness that would > > come from a system where the fairly standard *grep links are a mix > > between BSD grep and GNU grep. > > Ahhh. Yes, that does make good sense, now you mention it. > > Maybe they should be installed as bsdxzgrep ... :-) > > The thing is, though, it *did* used to do this, and now it doesn't, > which isn't very POLA, and the revision log makes no mention of it > (it's an update to do with META mode) and I can't find any information > about it. I'd have least expected /usr/src/UPDATING to mention when > 6 utilities are effectively removed from /usr/bin! > > Hence why I was wondering if this change was actually intentional - at > least now I know a good reason to do this (what you mentioned above) so > cheers for that, and the fast responses.. > > Your first response came in so quickly, I first thought it was a bounce > message! > > Cheers, Jamie > > P.S. Nice to see someone on this list still remembers mail quoting > etiquette ;-) > =E2=80=8BHuh, never even noticed (not that I use many of the grep variants)= . But, on a 10.3 install (from binaries, not source), half the variants are hard-links to bsdgrep, while the other half are hard-links to grep: =E2=80=8B[fcash@romulus ~]$ ls -li /usr/bin/*grep 5704478 -r-xr-xr-x 7 root wheel 49224 Mar 24 2016 /usr/bin/bsdgrep 5704508 -r-xr-xr-x 9 root wheel 93400 Mar 24 2016 /usr/bin/bzegrep 5704508 -r-xr-xr-x 9 root wheel 93400 Mar 24 2016 /usr/bin/bzfgrep 5704508 -r-xr-xr-x 9 root wheel 93400 Mar 24 2016 /usr/bin/bzgrep 5704508 -r-xr-xr-x 9 root wheel 93400 Mar 24 2016 /usr/bin/egrep 5704508 -r-xr-xr-x 9 root wheel 93400 Mar 24 2016 /usr/bin/fgrep 5704508 -r-xr-xr-x 9 root wheel 93400 Mar 24 2016 /usr/bin/grep 5704478 -r-xr-xr-x 7 root wheel 49224 Mar 24 2016 /usr/bin/lzegrep 5704478 -r-xr-xr-x 7 root wheel 49224 Mar 24 2016 /usr/bin/lzfgrep 5704478 -r-xr-xr-x 7 root wheel 49224 Mar 24 2016 /usr/bin/lzgrep 5704673 lrwxr-xr-x 1 root wheel 10 Mar 24 2016 /usr/bin/pgrep -> /bin/pgrep 5704478 -r-xr-xr-x 7 root wheel 49224 Mar 24 2016 /usr/bin/xzegrep 5704478 -r-xr-xr-x 7 root wheel 49224 Mar 24 2016 /usr/bin/xzfgrep 5704478 -r-xr-xr-x 7 root wheel 49224 Mar 24 2016 /usr/bin/xzgrep 5704508 -r-xr-xr-x 9 root wheel 93400 Mar 24 2016 /usr/bin/zegrep 5704508 -r-xr-xr-x 9 root wheel 93400 Mar 24 2016 /usr/bin/zfgrep 5704508 -r-xr-xr-x 9 root wheel 93400 Mar 24 2016 /usr/bin/zgrep =E2=80=8BDoes this mean an upgrade via freebsd-update to 11.x would remove = all the lz* and xz* hard-links from my system?=E2=80=8B Not that I would notice, j= ust curious. --=20 Freddie Cash fjwcash@gmail.com