X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/3857519629ca8fbcf3466c3fc761a5bb6ed32d53..HEAD:/src/src/exiwhat.src diff --git a/src/src/exiwhat.src b/src/src/exiwhat.src index 812f0b149..918908006 100644 --- a/src/src/exiwhat.src +++ b/src/src/exiwhat.src @@ -1,7 +1,9 @@ #! /bin/sh +# Copyright (c) The Exim Maintainers 2023 # Copyright (c) University of Cambridge, 1995 - 2007 # See the file NOTICE for conditions of use and distribution. +# SPDX-License-Identifier: GPL-2.0-or-later # Except when they appear in comments, the following placeholders in this # source are replaced when it is turned into a runnable script: @@ -40,7 +42,7 @@ rm=RM_COMMAND multikill_cmd=EXIWHAT_MULTIKILL_CMD multikill_arg=EXIWHAT_MULTIKILL_ARG -# In other operating systems, Exim has to use "ps" and "egrep" to find the +# In other operating systems, Exim has to use "ps" and "grep" to find the # processes itself. In those cases, the next three variables are used: ps_cmd=EXIWHAT_PS_CMD @@ -131,7 +133,7 @@ if [ "$multikill_cmd" != "" ] && type "$multikill_cmd" >/dev/null 2>&1; then else $ps_cmd $ps_arg | \ - egrep "$egrep_arg" | \ + grep -E "$egrep_arg" | \ awk "{print \"kill $signal \"\$1}" | \ uniq | sh fi