libvirt/tools
Eric Blake fe1b683fd0 virsh: Treat \n like ; in batch mode
I wanted to do a demonstration with virsh batch mode, which
takes multiple commands all packed into a single argument:

$ virsh -c test:///default 'echo a; echo b;'
a
b

but that produced a really long line, so I tried to make it
more legible:

$ virsh -c test:///default '
   echo a;
   echo b;
'
error: unknown command: '
'

Let's be more like the shell, and treat unquoted newline as a
command separator just as we do for semicolon.  In fact, with
that, I can even now mix styles:

$ virsh -c test:///default '
   echo a; echo b
   echo c
'
a
b
c

Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
2019-02-26 14:16:04 -06:00
..
bash-completion tools: Provide bash autompletion file 2018-01-11 18:53:04 +01:00
nss Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
wireshark tools: Drop support for pre-2.4.0 wireshark 2019-02-12 09:22:59 +01:00
libvirt_recover_xattrs.sh tools: Provide a script to recover fubar'ed XATTRs setup 2018-12-19 15:32:45 +01:00
libvirt_win_icon_16x16.ico Move virsh into tools/ directory 2009-09-21 14:41:45 +01:00
libvirt_win_icon_32x32.ico Move virsh into tools/ directory 2009-09-21 14:41:45 +01:00
libvirt_win_icon_48x48.ico Move virsh into tools/ directory 2009-09-21 14:41:45 +01:00
libvirt_win_icon_64x64.ico Move virsh into tools/ directory 2009-09-21 14:41:45 +01:00
libvirt-guests.init.in Use https:// links for most sites 2017-10-16 10:22:34 +01:00
libvirt-guests.service.in Use https:// links for most sites 2017-10-16 10:22:34 +01:00
libvirt-guests.sh.in tools: do not report unknown guests in print_guests_shutdown 2018-04-24 10:46:41 +02:00
libvirt-guests.sysconf lxc: allow use of lxc:///system URI as preferred format 2018-04-12 16:52:01 +01:00
Makefile.am tools: Keep wireshark plugin registration code in git 2019-02-12 09:22:59 +01:00
virsh_win_icon.rc Move virsh into tools/ directory 2009-09-21 14:41:45 +01:00
virsh-completer.c virsh: fix return value in storage vol name completor 2019-02-19 16:06:46 +00:00
virsh-completer.h Remove even more Author(s): lines from source files 2019-01-03 13:24:18 +01:00
virsh-console.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
virsh-console.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
virsh-domain-monitor.c Use NULLSTR_EMPTY 2019-02-14 14:09:38 +01:00
virsh-domain-monitor.h Remove even more Author(s): lines from source files 2019-01-03 13:24:18 +01:00
virsh-domain.c Use NULLSTR_EMPTY 2019-02-14 14:09:38 +01:00
virsh-domain.h Remove even more Author(s): lines from source files 2019-01-03 13:24:18 +01:00
virsh-edit.c Remove even more Author(s): lines from source files 2019-01-03 13:24:18 +01:00
virsh-host.c Remove even more Author(s): lines from source files 2019-01-03 13:24:18 +01:00
virsh-host.h Remove even more Author(s): lines from source files 2019-01-03 13:24:18 +01:00
virsh-interface.c Remove even more Author(s): lines from source files 2019-01-03 13:24:18 +01:00
virsh-interface.h Remove even more Author(s): lines from source files 2019-01-03 13:24:18 +01:00
virsh-network.c Remove EMPTYSTR macro 2019-02-14 14:09:38 +01:00
virsh-network.h Remove even more Author(s): lines from source files 2019-01-03 13:24:18 +01:00
virsh-nodedev.c Require a semicolon for VIR_ENUM_IMPL calls 2019-02-03 17:46:29 -05:00
virsh-nodedev.h Remove even more Author(s): lines from source files 2019-01-03 13:24:18 +01:00
virsh-nwfilter.c Remove even more Author(s): lines from source files 2019-01-03 13:24:18 +01:00
virsh-nwfilter.h Remove even more Author(s): lines from source files 2019-01-03 13:24:18 +01:00
virsh-pool.c Require a semicolon for VIR_ENUM_IMPL calls 2019-02-03 17:46:29 -05:00
virsh-pool.h Remove even more Author(s): lines from source files 2019-01-03 13:24:18 +01:00
virsh-secret.c Require a semicolon for VIR_ENUM_IMPL calls 2019-02-03 17:46:29 -05:00
virsh-secret.h Remove even more Author(s): lines from source files 2019-01-03 13:24:18 +01:00
virsh-snapshot.c virsh: fix snapshot list --parent 2019-02-14 16:37:24 +01:00
virsh-snapshot.h Remove even more Author(s): lines from source files 2019-01-03 13:24:18 +01:00
virsh-util.c all: Replace virGetLastError with virGetLastErrorCode where we can 2018-06-05 18:44:05 +02:00
virsh-util.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
virsh-volume.c Require a semicolon for VIR_ENUM_IMPL calls 2019-02-03 17:46:29 -05:00
virsh-volume.h Remove even more Author(s): lines from source files 2019-01-03 13:24:18 +01:00
virsh.c Remove even more Author(s): lines from source files 2019-01-03 13:24:18 +01:00
virsh.h Remove even more Author(s): lines from source files 2019-01-03 13:24:18 +01:00
virsh.pod virsh: Treat \n like ; in batch mode 2019-02-26 14:16:04 -06:00
virt-admin-completer.c Remove even more Author(s): lines from source files 2019-01-03 13:24:18 +01:00
virt-admin-completer.h Remove even more Author(s): lines from source files 2019-01-03 13:24:18 +01:00
virt-admin.c Use NULLSTR_EMPTY 2019-02-14 14:09:38 +01:00
virt-admin.h Remove even more Author(s): lines from source files 2019-01-03 13:24:18 +01:00
virt-admin.pod virsh: Treat \n like ; in batch mode 2019-02-26 14:16:04 -06:00
virt-host-validate-bhyve.c internal: Move <stdio.h> include to internal.h 2018-09-20 10:16:38 +02:00
virt-host-validate-bhyve.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
virt-host-validate-common.c virt-host-validate: Fix build on non-Linux 2018-10-08 09:55:40 +02:00
virt-host-validate-common.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
virt-host-validate-lxc.c virt-host-validate: require freezer for LXC 2018-10-05 15:53:29 +02:00
virt-host-validate-lxc.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
virt-host-validate-qemu.c virt-host-validate: rewrite cgroup detection to use util/vircgroup 2018-10-05 15:53:29 +02:00
virt-host-validate-qemu.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
virt-host-validate.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
virt-host-validate.pod Use https:// links for most sites 2017-10-16 10:22:34 +01:00
virt-login-shell.c Remove even more Author(s): lines from source files 2019-01-03 13:24:18 +01:00
virt-login-shell.conf virt-login-shell: add ability to auto-detect shell from container 2016-06-10 11:03:02 +01:00
virt-login-shell.pod Use https:// links for most sites 2017-10-16 10:22:34 +01:00
virt-pki-validate.in tools: rename S_ORG to C_ORG in virt-pki-validate 2018-12-11 14:58:43 +00:00
virt-pki-validate.pod Use https:// links for most sites 2017-10-16 10:22:34 +01:00
virt-sanlock-cleanup.in build: Extract pod from source files 2016-04-25 15:40:43 +02:00
virt-sanlock-cleanup.pod Use https:// links for most sites 2017-10-16 10:22:34 +01:00
virt-xml-validate.in tools/virt-xml-validate: Fix GPL information 2019-01-25 14:04:19 +01:00
virt-xml-validate.pod virt-xml-validate: Add schema for nwfilterbinding 2018-07-19 16:16:57 -04:00
vsh-table.c vsh-table: allow empty columns 2019-02-12 10:14:53 +01:00
vsh-table.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
vsh.c virsh: Treat \n like ; in batch mode 2019-02-26 14:16:04 -06:00
vsh.h Remove even more Author(s): lines from source files 2019-01-03 13:24:18 +01:00