skimming through coreutils’ copy.c, emit_verbose is called on line 2627 while copy_reg is called on line 3103 (in the implementation of copy_internal). at least on my machine, touch /tmp/foo && cp -v /tmp/{foo,bar/} returns an error after printing the verbose output.
skimming through coreutils’ copy.c,
emit_verboseis called on line 2627 whilecopy_regis called on line 3103 (in the implementation ofcopy_internal). at least on my machine,touch /tmp/foo && cp -v /tmp/{foo,bar/}returns an error after printing the verbose output.