WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] Replace grep >&/dev/null with grep -q.

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Replace grep >&/dev/null with grep -q.
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 29 Nov 2005 16:44:08 +0000
Delivery-date: Tue, 29 Nov 2005 16:44:32 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User emellor@xxxxxxxxxxxxxxxxxxxxxx
# Node ID e67cfb40411db6b7350fdb7567783aa412235c97
# Parent  e47e953c9e1061ab9bef9f08873716b7155e8216
Replace grep >&/dev/null with grep -q.

Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>

diff -r e47e953c9e10 -r e67cfb40411d tools/examples/vif-bridge
--- a/tools/examples/vif-bridge Tue Nov 29 14:55:48 2005
+++ b/tools/examples/vif-bridge Tue Nov 29 14:56:16 2005
@@ -48,7 +48,7 @@
 
 case "$command" in
     online)
-        if brctl show | grep "$vif" >&/dev/null
+        if brctl show | grep -q "$vif"
         then
           log debug "$vif already attached to a bridge"
           exit 0

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Replace grep >&/dev/null with grep -q., Xen patchbot -unstable <=