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-devel

Re: [Xen-devel] [PATCH] Fix non-portable grep usage

To: john.levon@xxxxxxx
Subject: Re: [Xen-devel] [PATCH] Fix non-portable grep usage
From: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
Date: Tue, 13 Nov 2007 10:01:53 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 13 Nov 2007 02:03:03 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <695e38fa5029bafc9ee9.1194906281@hatchback>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Newsgroups: chiark.mail.xen.devel
References: <695e38fa5029bafc9ee9.1194906281@hatchback>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
john.levon@xxxxxxx writes ("[Xen-devel] [PATCH] Fix non-portable grep usage"):
> -       grep -E -q '^ +U ' && {                            \
> +       egrep '^ +U ' 2>/dev/null && {                     \

-q suppresses stdout output, not stderr.  So I think you mean:
  +       egrep '^ +U ' >/dev/null && {                      \

Ian.

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

<Prev in Thread] Current Thread [Next in Thread>