Menu

#109 Recent versions of egrep generate warning

v7.7
closed-accepted
nobody
None
5
2022-09-27
2022-09-22
No

Recent versions of egrep (now included in openSUSE Tumbleweed) now print a deprecation warning, saying to use "grep -E". For example:

--------------------- fail2ban-messages Begin ------------------------

egrep: warning: egrep is obsolescent; using grep -E

---------------------- fail2ban-messages End -------------------------

It'd be great if logwatch's scripts could be updated to use "grep -E".

Discussion

  • Andreas Stieger

    Andreas Stieger - 2022-09-22

    proposed patch

     
  • Bjorn

    Bjorn - 2022-09-23
    • status: open --> closed-accepted
     
  • Bjorn

    Bjorn - 2022-09-23

    Thanks for the patch.

    While in the past egrep was a separate executable, its functionality has been incorporated as grep -E for many years now, so this is unlikely to break still running systems.

     
    • Andreas Stieger

      Andreas Stieger - 2022-09-27

      So... would you like to merge it? I do not see it merged.

       
  • Bjorn

    Bjorn - 2022-09-27

    Sorry; I had committed the changes, but neglected to push them. Should be there now.

     

Log in to post a comment.

MongoDB Logo MongoDB