With iflag=directory ...
`directory'
Fail unless the file is a directory. Most operating systems
do not allow I/O to a directory, so this flag has limited
utility.
... dd(1) would fail if the input file is _not_ a directory:
$ src/dd iflag=directory if=src/dd
src/dd: failed to open ‘src/dd’: Not a directory
And on Linux, read(2)ing from a directory fails:
src/dd iflag=directory if=. status=none
src/dd: error reading ‘.’: Is a directory
So my questions (forwarded from a downstream ML):
a) on which systems is read(2)ing from a directory supported?
IIRC HP-UX?
b) when 'dd if=DIR' is successful, what would be the output?
Is it useful to write it e.g. to 'of=DIR2'?
Thanks & have a nice day,
Berny