Stefan Berger
2006-Apr-17 19:54 UTC
[Xen-devel] [PATCH] [vTPM] Script fixes for bash under FC5
Under FC5 multi-line commands in bash script language have to be wrapped in $(...) instead of ''`...`'', otherwise the parser seems to get confused. Signed-off-by: Stefan Berger <stefanb@us.ibm.com> _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Ryan Harper
2006-Apr-17 20:20 UTC
Re: [Xen-devel] [PATCH] [vTPM] Script fixes for bash under FC5
* Stefan Berger <stefanb@us.ibm.com> [2006-04-17 14:56]:> + instance=$(cat $VTPMDB | \ > awk -vvmname=$vmname \Any reason you use awk here> + instances=$(cat $VTPMDB | \ > gawk \and gawk just about everywhere else?> - instances=`cat $VTPMDB | \ > + instances=$(cat $VTPMDB | \> + res=$(cat $VTPMDB | \ > gawk -vvmname=$vmname \> + $(cat $VTPMDB | \ > gawk -vvmname=$vmname \# grep -n awk /etc/xen/scripts/vtpm-common.sh 64: awk -vvmname=$vmname \ 90: gawk \ 114: gawk \ 167: gawk -vvmname=$vmname \ 200: gawk -vvmname=$vmname \ -- Ryan Harper Software Engineer; Linux Technology Center IBM Corp., Austin, Tx (512) 838-9253 T/L: 678-9253 ryanh@us.ibm.com _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Ewan Mellor
2006-Apr-19 21:55 UTC
[Xen-devel] Re: [PATCH] [vTPM] Script fixes for bash under FC5
On Mon, Apr 17, 2006 at 03:54:44PM -0400, Stefan Berger wrote:> Under FC5 multi-line commands in bash script language have to be wrapped > in $(...) instead of ''`...`'', otherwise the parser seems to get > confused. > > Signed-off-by: Stefan Berger <stefanb@us.ibm.com>Applied, thanks. Ewan. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel