From nobody Thu Sep 05 13:52:39 2024 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4X015S59Csz5W5W6; Thu, 05 Sep 2024 13:52:44 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-qt1-x82d.google.com (mail-qt1-x82d.google.com [IPv6:2607:f8b0:4864:20::82d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4X015S3DMSz4RxP; Thu, 5 Sep 2024 13:52:44 +0000 (UTC) (envelope-from markjdb@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-qt1-x82d.google.com with SMTP id d75a77b69052e-4568fe680a3so4560391cf.0; Thu, 05 Sep 2024 06:52:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725544363; x=1726149163; darn=freebsd.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:sender :from:to:cc:subject:date:message-id:reply-to; bh=5bGZGb3RXiGbV05JoZAS8d6zNmB36tSHn18H6zLiLQI=; b=MVlTm3lq73WvnysmXNVQBKYJx6XTWV+7DmVhntoNLBgflWwMWgXwXliUIwwWRLdW7X tSTn0d6LC4zt/8OQJVCHqOvBkOEABA+sVxt1m9A9Sdpn3HdSxV+EPV3RoWsgisfw9i/k iwpuePzwyXQltB/7v63Adke65QScI078F65J4umV3aFVhYQfFpU5MUkk1L1wANHhRRYe W4837/b1wwdbmGafulE77pNY790D/UeEVbTDS7zJhKx6RFx29sYCwY837XWwwrMBL6bd ppXSOLNXd2XTJG9okpa92HAAdGcSYNlKkaHOh2EKr1GKSrUsjO1Z+f0ldvi57xD9yECz gs7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725544363; x=1726149163; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:sender :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=5bGZGb3RXiGbV05JoZAS8d6zNmB36tSHn18H6zLiLQI=; b=Y16jbff3X1lGojSzBZ94hIBww35sBHmKDv0kl86A73qANS24K3nh1Pdy1RKAk+DHmZ kIR7gdhuGOAFVwYXjYPzEBSE+P2l7zMMMglXsbldYSWU95AgL+kjKHkxyRRvPk1RhVkm SxH1joyb7P/CG+Vf/h+cMeAERnPD1+u+ITzVU7g97xUlTHOLK/AzTCtXHkQsi2kQna7P Qfp/GXysgB7Tm7Q/4s+mqcB+dOlB5UOogvw5x4nETtZsxyVRdjCulSLr0xyGVCHujloK HwHT2qY2T1vlkRWeFpvexmCqKlNYEAGgwc9NhdLkyr2bF2+GbMIGdhsGe1x5Hs00etT3 Gw5w== X-Forwarded-Encrypted: i=1; AJvYcCWUM5tL5juRSbSOXLtI/q3rdwiVcqYSZ14yzSIWsKGqQUrZBqURO13SnoNrTqIQopRIN/OAEzFqkeYf61R/Ucluux/i@freebsd.org, AJvYcCXXnv/ioQOVejbRS8zcMZzS8OipMcavQpafyjnHsM6FPKT1kT7YQXK6s+xVIBNo089JFcLx9sIYw0yxEjzC6B73+0AdU7A=@freebsd.org X-Gm-Message-State: AOJu0YyIxECNSClefVbteHc5nyyNzBNxiIo+wFwrGDEdJ7jEY4LnjLqU jpHww1JCVa10o03ftP+M4SgvN6mcXjdRDHHkxQPUS21UchsJ2uXJMHJecw== X-Google-Smtp-Source: AGHT+IHotTQe97zQ/ZPfltjQI7ImY1seepUSm1ABLTByQnCzaGtpFl/Duony74ss6KAEj8QuKmkBkg== X-Received: by 2002:a05:622a:6103:b0:457:cb51:2cd4 with SMTP id d75a77b69052e-457e2f51ff2mr102026961cf.45.1725544362502; Thu, 05 Sep 2024 06:52:42 -0700 (PDT) Received: from nuc (192-0-220-237.cpe.teksavvy.com. [192.0.220.237]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-45801b31e67sm7262511cf.21.2024.09.05.06.52.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Sep 2024 06:52:41 -0700 (PDT) Date: Thu, 5 Sep 2024 09:52:39 -0400 From: Mark Johnston To: John Baldwin Cc: src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org Subject: Re: git: fc12c191c087 - main - grep: Default to -p instead of -S. Message-ID: References: <202409041953.484JrvPY028856@gitrepo.freebsd.org> List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <202409041953.484JrvPY028856@gitrepo.freebsd.org> X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4X015S3DMSz4RxP On Wed, Sep 04, 2024 at 07:53:57PM +0000, John Baldwin wrote: > The branch main has been updated by jhb: > > URL: https://cgit.FreeBSD.org/src/commit/?id=fc12c191c087b63e1204fee210ba76082ea40b96 > > commit fc12c191c087b63e1204fee210ba76082ea40b96 > Author: John Baldwin > AuthorDate: 2024-09-04 19:53:22 +0000 > Commit: John Baldwin > CommitDate: 2024-09-04 19:53:22 +0000 > > grep: Default to -p instead of -S. > > This matches the documented behavior in the manpage as well as the > default behavior on macOS. Should this get a RELNOTES entry? > > PR: 280676 > Reported by: Radosław Piliszek > Reviewed by: kevans > MFC after: 1 week > Differential Revision: https://reviews.freebsd.org/D46256 > --- > usr.bin/grep/grep.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/usr.bin/grep/grep.c b/usr.bin/grep/grep.c > index 9f960f74dbb6..feaf17d7c1e1 100644 > --- a/usr.bin/grep/grep.c > +++ b/usr.bin/grep/grep.c > @@ -112,7 +112,7 @@ int binbehave = BINFILE_BIN; /* -aIU: handling of binary files */ > int filebehave = FILE_STDIO; > int devbehave = DEV_READ; /* -D: handling of devices */ > int dirbehave = DIR_READ; /* -dRr: handling of directories */ > -int linkbehave = LINK_READ; /* -OpS: handling of symlinks */ > +int linkbehave = LINK_SKIP; /* -OpS: handling of symlinks */ > > bool dexclude, dinclude; /* --exclude-dir and --include-dir */ > bool fexclude, finclude; /* --exclude and --include */