Domino on Linux/Unix, Troubleshooting, Best Practices, Tips and more ...

alt

Daniel Nashed

Domino on Linux NSD -- fgrep: warning: fgrep is obsolescent; using grep -F

Daniel Nashed – 19 November 2025 07:09:05

When you run Domino on Linux, you might have seen this message when running newer Linux versions.

Background about this message is that GNU starts to deprecating those older functions and tell developers how to change it.


There is an environment variable you can set to disable this warning for now. But it would need to be set in the environment of the user before Domino is started.


export GREP_OPTIONS="--no-warnings"


The better way would be to replace those invocations in those scripts.

There are actually two separate warnings depending on which version of Domino you use:


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

fgrep: warning: fgrep is obsolescent; using grep -F


egrep has been already replaced in Domino 14.5.

Still the fgrep warning is showing up when running NSDs.


Those messages are not a big deal, but there is a simple way to address it at least for the Domino container image.

I have just added a simple sed command during the container build to replace those invocations to grep -F/-E.

This replacement also addresses older Domino versions. Not just 14.5.


-- Daniel

Links

    Archives


    • [HCL Domino]
    • [Domino on Linux]
    • [Nash!Com]
    • [Daniel Nashed]