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
..
2018-01-11 18:53:04 +01:00
2018-12-14 10:47:13 +00:00
2019-02-12 09:22:59 +01:00
2018-12-19 15:32:45 +01:00
2009-09-21 14:41:45 +01:00
2009-09-21 14:41:45 +01:00
2009-09-21 14:41:45 +01:00
2009-09-21 14:41:45 +01:00
2017-10-16 10:22:34 +01:00
2017-10-16 10:22:34 +01:00
2018-04-24 10:46:41 +02:00
2018-04-12 16:52:01 +01:00
2019-02-12 09:22:59 +01:00
2009-09-21 14:41:45 +01:00
2019-02-19 16:06:46 +00:00
2019-01-03 13:24:18 +01:00
2018-12-13 16:08:38 +00:00
2018-12-14 10:47:13 +00:00
2019-02-14 14:09:38 +01:00
2019-01-03 13:24:18 +01:00
2019-02-14 14:09:38 +01:00
2019-01-03 13:24:18 +01:00
2019-01-03 13:24:18 +01:00
2019-01-03 13:24:18 +01:00
2019-01-03 13:24:18 +01:00
2019-01-03 13:24:18 +01:00
2019-01-03 13:24:18 +01:00
2019-02-14 14:09:38 +01:00
2019-01-03 13:24:18 +01:00
2019-02-03 17:46:29 -05:00
2019-01-03 13:24:18 +01:00
2019-01-03 13:24:18 +01:00
2019-01-03 13:24:18 +01:00
2019-02-03 17:46:29 -05:00
2019-01-03 13:24:18 +01:00
2019-02-03 17:46:29 -05:00
2019-01-03 13:24:18 +01:00
2019-02-14 16:37:24 +01:00
2019-01-03 13:24:18 +01:00
2018-06-05 18:44:05 +02:00
2018-12-14 10:47:13 +00:00
2019-02-03 17:46:29 -05:00
2019-01-03 13:24:18 +01:00
2019-01-03 13:24:18 +01:00
2019-01-03 13:24:18 +01:00
2019-02-26 14:16:04 -06:00
2019-01-03 13:24:18 +01:00
2019-01-03 13:24:18 +01:00
2019-02-14 14:09:38 +01:00
2019-01-03 13:24:18 +01:00
2019-02-26 14:16:04 -06:00
2018-09-20 10:16:38 +02:00
2018-12-14 10:47:13 +00:00
2018-10-08 09:55:40 +02:00
2018-12-14 10:47:13 +00:00
2018-10-05 15:53:29 +02:00
2018-12-14 10:47:13 +00:00
2018-10-05 15:53:29 +02:00
2018-12-14 10:47:13 +00:00
2018-09-20 10:16:39 +02:00
2017-10-16 10:22:34 +01:00
2019-01-03 13:24:18 +01:00
2016-06-10 11:03:02 +01:00
2017-10-16 10:22:34 +01:00
2018-12-11 14:58:43 +00:00
2017-10-16 10:22:34 +01:00
2016-04-25 15:40:43 +02:00
2017-10-16 10:22:34 +01:00
2019-01-25 14:04:19 +01:00
2018-07-19 16:16:57 -04:00
2019-02-12 10:14:53 +01:00
2018-12-14 10:47:13 +00:00
2019-02-26 14:16:04 -06:00
2019-01-03 13:24:18 +01:00