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] Calling awk and not gawk in the Xen scripts

To: Thomas Goirand <thomas@xxxxxxxxxx>
Subject: Re: [Xen-devel] [patch] Calling awk and not gawk in the Xen scripts
From: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
Date: Mon, 19 Apr 2010 16:15:13 +0100
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 19 Apr 2010 08:16:04 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4BCB6E3B.1050905@xxxxxxxxxx>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Newsgroups: chiark.mail.xen.devel
References: <4BCB6E3B.1050905@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thomas Goirand writes ("[Xen-devel] [patch] Calling awk and not gawk in the Xen 
scripts"):
> I noticed that 2 scripts in Xen 4.0.0 are calling "gawk". Normally, in
> most distributions, gawk is considered a specific version of awk.
> Calling "gawk" and not "awk" generally means that you need specificities
> of the "g" version of awk, as opposed to "mawk" which is another
> implementation of the same tool.
> 
> So, unless I misread the scripts, Xen doesn't need to use gawk but just
> any implementation of awk, and the attached patch can safely be applied.

I agree.

Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>

> If I am wrong (which I don't think I am at the first look) and that
> there's a reason why gawk is used and not awk, then IMHO, the toplevel
> README should mention it in the prerequisites.

They aren't very complicated uses of awk.  If it does turn out to
cause problems it should be straightforward to change the awk runes to
use the SuSv6 subset of the language.

Ian.

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

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