search for: xpg_echo

Displaying 2 results from an estimated 2 matches for "xpg_echo".

Did you mean: app_echo
2019 Sep 12
3
Re: [PATCH nbdkit v2 3/3] tests: Add a simple test of nbdkit_export_name.
...uot; in > + open) > + h=`mktemp $tmpdir/disk-XXXXXX` > + echo -n "$3" > $h I prefer printf over echo -n (we require bash which means we are more portable than a random shell where POSIX says -n is undefined; but you can still make bash misbehave with shopt -s xpg_echo) printf %s "%3" > $h > + echo $h > + ;; Hmm - instead of making the handle be the name of a temporary file that contains the export name, you could just make the handle _be_ the export name: open) printf %s "$3" ;; > + get_size) > +...
2019 Sep 12
4
[PATCH nbdkit v2 0/3] Access export name from plugins.
The previous incomplete patch was here: https://www.redhat.com/archives/libguestfs/2019-September/msg00049.html based on earlier discussion here: https://www.redhat.com/archives/libguestfs/2019-September/msg00047.html In v2: - The previous patch was incomplete. This version completes it by adding tests and extending nbdkit-sh-plugin. - nbdkit_export_name now returns NULL for error,