[libvirt] [PATCH] virt-xml-validate: Allow input to be read from stdin

Martin Kletzander mkletzan at redhat.com
Mon May 20 12:18:43 UTC 2019


On Mon, May 20, 2019 at 11:57:13AM +0000, Johannes Holmberg wrote:
>---
>
>Hello,
>
>This is an updated version of a patch I submitted on 2015-06-10. I got
>some feedback on it but then moved on to a different project and
>forgot about it. Anyway, I've updated the patch according to the
>feedback so if you are still interested, here it is! :)
>

Hi, thanks for the patch.  Wouldn't it be easier and cleaner if we just did:

if [ "$XMLFILE" = "-" ]; then
  XMLFILE=/dev/stdin
fi

??
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20190520/73dcc4d9/attachment-0001.sig>


More information about the libvir-list mailing list