The invocation instructions for the copy-libev example are a bit too wide. The obvious wrapping
./copy-ev \ nbd+unix:///?socket=/tmp/src.sock \ nbd+unix:///?socket=/tmp/dst.sock is not desirable in a C-language comment, because the C standard places line splicing before comment squashing (translation phases #2 and #3, respectively). Therefore use shell variables. While at it, fix a small typo (from commit 6be6a9029abb, "examples: Add example for integrating with libev", 2021-03-01): the executable is called "copy-libev", not "copy-ev". Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2172516 Signed-off-by: Laszlo Ersek <ler...@redhat.com> --- examples/copy-libev.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/examples/copy-libev.c b/examples/copy-libev.c index 02f9cad492b9..32cb46b3d815 100644 --- a/examples/copy-libev.c +++ b/examples/copy-libev.c @@ -7,9 +7,11 @@ * * To run it: * - * nbdkit -r pattern size=1G -U /tmp/src.sock - * nbdkit memory size=1g -U /tmp/dst.sock - * ./copy-ev nbd+unix:///?socket=/tmp/src.sock nbd+unix:///?socket=/tmp/dst.sock + * SRC=/tmp/src.sock + * DST=/tmp/dst.sock + * nbdkit -r pattern size=1G -U $SRC + * nbdkit memory size=1g -U $DST + * ./copy-libev nbd+unix:///?socket=$SRC nbd+unix:///?socket=$DST * * To debug it: * _______________________________________________ Libguestfs mailing list Libguestfs@redhat.com https://listman.redhat.com/mailman/listinfo/libguestfs