diff mbox

[kvm-unit-tests,4/4] x86-run: replace the deprecated 'fgrep' with 'grep -F'

Message ID 1B4B44D9196EFF41AE41FDA404FC0A1001B1E1C8@SHSMSX102.ccr.corp.intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Ren, Yongjie June 24, 2013, 8:51 a.m. UTC
x86-run: replace the deprecated 'fgrep' with 'grep -F'.

Signed-off-by: Yongjie Ren <yongjie.ren@intel.com>
---
 x86-run |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
diff mbox

Patch

diff --git a/x86-run b/x86-run
index 6093a72..14ff331 100755
--- a/x86-run
+++ b/x86-run
@@ -3,12 +3,12 @@ 
 qemukvm="${QEMU:-qemu-kvm}"
 qemusystem="${QEMU:-qemu-system-x86_64}"
 if
-	${qemukvm} -device '?' 2>&1 | fgrep -e \"testdev\" -e \"pc-testdev\" > /dev/null;
+	${qemukvm} -device '?' 2>&1 | grep -F -e \"testdev\" -e \"pc-testdev\" > /dev/null;
 then
 	qemu="${qemukvm}"
 else
 	if
-		${qemusystem} -device '?' 2>&1 | fgrep -e \"testdev\" -e \"pc-testdev\" > /dev/null;
+		${qemusystem} -device '?' 2>&1 | grep -F -e \"testdev\" -e \"pc-testdev\" > /dev/null;
 	then
 		qemu="${qemusystem}"
 	else
@@ -18,7 +18,7 @@  else
 fi
 
 if
-	${qemu} -device '?' 2>&1 | fgrep pci-testdev > /dev/null;
+	${qemu} -device '?' 2>&1 | grep -F "pci-testdev" > /dev/null;
 then
 	pci_testdev="-device pci-testdev"
 else
@@ -26,7 +26,7 @@  else
 fi
 
 if
-	${qemu} -device '?' 2>&1 | fgrep "pc-testdev" > /dev/null;
+	${qemu} -device '?' 2>&1 | grep -F "pc-testdev" > /dev/null;
 then
 	pc_testdev="-device pc-testdev -device isa-debug-exit,iobase=0xf4,iosize=0x4"
 else