From: Darik Horn Date: Sun, 4 Dec 2011 19:58:53 +0000 (-0600) Subject: Demote egrep to grep in the zpool_id script. X-Git-Tag: zfs-0.6.0-rc7~57 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=87193e2b6111d6080df90c2c8e03ce49b14e031a;p=zfs Demote egrep to grep in the zpool_id script. Direct invocation of GNU egrep is deprecated by its man page, and the its argument in the zpool_id script is not an extended expression. Signed-off-by: Brian Behlendorf --- diff --git a/cmd/zpool_id/zpool_id b/cmd/zpool_id/zpool_id index e3cd0f6c0..d5f2e9d0c 100755 --- a/cmd/zpool_id/zpool_id +++ b/cmd/zpool_id/zpool_id @@ -52,7 +52,7 @@ done # multipathd's naming convention) as our unique persistent key. # For traditional devices we'll obtain the key from udev's # path_id. -if [ -n "${DM_UUID}" ] && echo "${DM_UUID}" | egrep -q -e '^mpath' ; then +if [ -n "${DM_UUID}" ] && echo "${DM_UUID}" | grep -q -e '^mpath' ; then ID_PATH="dm-uuid-${DM_UUID}" else eval `${PATH_ID} ${DEVICE}`