]> granicus.if.org Git - zfs/commitdiff
Demote egrep to grep in the zpool_id script.
authorDarik Horn <dajhorn@vanadac.com>
Sun, 4 Dec 2011 19:58:53 +0000 (13:58 -0600)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 5 Dec 2011 17:48:01 +0000 (09:48 -0800)
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 <behlendorf1@llnl.gov>
cmd/zpool_id/zpool_id

index e3cd0f6c0542865ef0fb5d7a2f5363b12400763c..d5f2e9d0cc7bc4c2c95ce4d76b8d0b436f5605d3 100755 (executable)
@@ -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}`