bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Use of deprecated 'egrep' and 'fgrep'


From: Thomas Dickey
Subject: Re: Use of deprecated 'egrep' and 'fgrep'
Date: Wed, 28 Sep 2022 19:50:31 -0400
User-agent: Mutt/1.10.1 (2018-07-13)

On Thu, Sep 29, 2022 at 12:23:36AM +0100, Sam James wrote:
> 
> 
> > On 29 Sep 2022, at 00:16, Thomas Dickey <dickey@his.com> wrote:
> > 
> > On Wed, Sep 28, 2022 at 09:08:28PM +0100, Sam James wrote:
> >> Hi,
> >> 
> >> grep 3.8 emits deprecation warnings for both 'egrep' and 'fgrep',
> >> telling users to switch to 'grep -E' and 'grep -F' respectively.
> > 
> > yes... I noticed this recently (in test-builds for xterm, e.g.,
> > Fedora Rawhide), though I began working around it early this year.
> > 
> > Having had no copies of 3.8 in the wild, there'll be spots that I 
> > overlooked.
> > Most of those are in configure macros and external scripts.
> > 
> > I'll tidy up that, of course.
> > 
> 
> Thanks!
> 
> In case it's helpful, here's what the wrappers look like:
> ````
> $ cat /usr/bin/egrep
> #!/bin/sh
> cmd=${0##*/}
> echo "$cmd: warning: $cmd is obsolescent; using /bin/grep -E" >&2
> exec /bin/grep -E "$@"

yes... I looked to see when the change was made, etc.
 
> $ cat /usr/bin/fgrep
> #!/bin/sh
> cmd=${0##*/}
> echo "$cmd: warning: $cmd is obsolescent; using /bin/grep -F" >&2
> exec /bin/grep -F "$@"
> ```
> 
> May be useful to put in PATH temporarily or something.

no need - when I'm testing configure script changes, I test on more
than one system (I've a few dozen available...).

seriously - I'll spend less time cleaning this stuff up than fixing memory
leaks.

-- 
Thomas E. Dickey <dickey@invisible-island.net>
https://invisible-island.net
ftp://ftp.invisible-island.net

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]