]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: Elide backslash-newline in batch mode
authorEric Blake <eblake@redhat.com>
Tue, 26 Feb 2019 18:49:25 +0000 (12:49 -0600)
committerEric Blake <eblake@redhat.com>
Tue, 26 Feb 2019 21:42:21 +0000 (15:42 -0600)
commit5817dec0149a909de65820236f3d8ba8d7bbf53f
treedd9f13733a025fd168821a02fdb17324611e5318
parentfe1b683fd0302f84d589c25987273abb3d8846c5
virsh: Elide backslash-newline in batch mode

The previous patch made it possible to split multiple commands by
adding newline, but not to split a long single command. The sequence
backslash-newline was being used as if it were a quoted newline
character, rather than completely elided the way the shell does.

Again, add more tests, although this time it seems more like I am
suffering from a leaning-toothpick syndrome with all the \.

Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
tests/virshtest.c
tools/virsh.pod
tools/virt-admin.pod
tools/vsh.c