[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] Need help with qemu args debug

  • To: xen-devel@xxxxxxxxxxxxx
  • From: Philipp Hahn <hahn@xxxxxxxxxxxxx>
  • Date: Wed, 29 Feb 2012 18:25:27 +0100
  • Delivery-date: Wed, 29 Feb 2012 17:26:22 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>


just a nit:

On Wednesday 29 February 2012 12:22:35 Ian Campbell wrote:
> What I often do is create qemu-debug.sh:
>       #!/bin/sh
>       echo "Starting QEMU with: $*" >> /tmp/qemu-dbg.log
>       exec /usr/lib/xen/bin/qemu-system-i386 $@

You should always put double-quotes arount the $@, otherwise the shell does 
IFS-splitting on the arguments. Probably not that important in this case, but 
since this creates nasty quoting problems in general, post "good code" for 
the archive.


PS: I know there are broken shell, which don't handle "$@" correct, but hey, 
they're broken anyway.
Philipp Hahn           Open Source Software Engineer      hahn@xxxxxxxxxxxxx
Univention GmbH        Linux for Your Business        fon: +49 421 22 232- 0
Mary-Somerville-Str.1  D-28359 Bremen                 fax: +49 421 22 232-99

Attachment: signature.asc
Description: This is a digitally signed message part.

Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.