From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-4.6 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 70E4B1F4B4 for ; Sun, 27 Dec 2020 00:44:17 +0000 (UTC) Received: from localhost ([::1]:57216 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ktKAR-00046I-Vf for normalperson@yhbt.net; Sat, 26 Dec 2020 19:44:16 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:57312) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ktKAO-000464-5T; Sat, 26 Dec 2020 19:44:12 -0500 Received: from mo4-p00-ob.smtp.rzone.de ([85.215.255.25]:26663) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ktKAL-000531-1j; Sat, 26 Dec 2020 19:44:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1609029844; s=strato-dkim-0002; d=clisp.org; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:From: Subject:Sender; bh=QoV6Lx+bvTTtyFpBjqxA3UIgkcVfMnYmFUSK2GMCkp8=; b=dUbT+Ea9QWX2t1X0ioLrE7+IdNbEJ7u8zPFo4FpMtBruv5TuwRatt/Efun1QIvPbSo p5aOtZ8E49nAQwzJfx9ixKaVdkbv2lAzBx3s5nZBuczpC2o3nb7ShQbpy5HBbTgHGpG4 kFTa824aItPymDLaunZ4Z0soOafO6Jc22qJfnpsd98xFj5GkxhHdDC/m4Cd+xBbGlL/X MlnG9+TZSqhTPeAgWJYowaCnPIGpS4sggSY4EeXtdBKFPqo9qlbrGPKXl6IU6/K4CSje ArAWTdeLVVsX9/HarurEeTXmSql07JOqIRHLEq50ZavorlRGggParCvyjtpMYKJHD1Sq IsFg== X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlIWs+iCP5vnk6shH+AHjwLuWOHqfzyPs=" X-RZG-CLASS-ID: mo00 Received: from bruno.haible.de by smtp.strato.de (RZmta 47.10.7 DYNA|AUTH) with ESMTPSA id e012d5wBR0hwF2F (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve X9_62_prime256v1 with 256 ECDH bits, eq. 3072 bits RSA)) (Client did not present a certificate); Sun, 27 Dec 2020 01:43:58 +0100 (CET) From: Bruno Haible To: Paul Eggert Subject: Re: egrep, fgrep, and install-info Date: Sun, 27 Dec 2020 01:43:57 +0100 Message-ID: <3937058.cZqfhRazpa@omega> User-Agent: KMail/5.1.3 (Linux/4.4.0-197-generic; KDE/5.18.0; x86_64; ; ) In-Reply-To: References: <878s9k8rhw.fsf@latte.josefsson.org> <3d0a0d5f680e0e60a849d018ac02a08914ff0260.camel@josefsson.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Received-SPF: none client-ip=85.215.255.25; envelope-from=bruno@clisp.org; helo=mo4-p00-ob.smtp.rzone.de X-Spam_score_int: -36 X-Spam_score: -3.7 X-Spam_bar: --- X-Spam_report: (-3.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-1.619, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Simon Josefsson , bug-gnulib@gnu.org, bug-standards@gnu.org Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: "bug-gnulib" Paul Eggert wrote: > *************** > *** 174,179 **** > --- 174,182 ---- > for parallel execution. For a list of known incompatibilities, see > @ref{Portable Shell, Portable Shell Programming,, autoconf, Autoconf}. > =20 > + Programs like @code{egrep} and @code{install-info} can be used in > + rules that have a fallback if the programs are absent. > + @xref{Standard Targets} for an example of this. > =20 > It is a good idea to avoid creating symbolic links in makefiles, since a > few file systems don't support them. When you remove 'egrep', 'fgrep', or 'install-info' from the previously allowed list of commands, everyone will ask: "ok, so now what replacement should I use?" 1) For egrep and fgrep, probably the answer would be "use 'grep -E' or 'grep -F', respectively" =E2=80=94 because POSIX supports these options. Unfortunately, Solaris 10 doesn't: $ type grep grep is /usr/bin/grep $ grep -F haible /etc/passwd grep: illegal option -- F Usage: grep -hblcnsviw pattern file . . . $ grep -E '(haible|eggert)' /etc/passwd grep: illegal option -- E Usage: grep -hblcnsviw pattern file . . . Likewise for /usr/5bin/grep. 2) For 'install-info', what would be the replacement? Even though Automake knows how to handle its absence [1], it would be good to know. Bruno [1] https://www.gnu.org/software/automake/manual/html_node/Texinfo.html