Description of Problem: cp returns an error code when encountering a directory in a non-recursive copy; Version-Release number of selected component (if applicable): How Reproducible: mkdir a mkdir a/b mkdir a/b/c mkdir d touch a/b/foo cd a if cp b/* ../d ; then echo Good ; else echo bad ; fi Actual Results: makefile, util, etc, exit as if command fails. cp has no command to ignore the directory, thus all script are cripled; Expected Results: either cp to return success (you said non-recursive copy, I did. Job well done!) or at least a --ignore-directories Additional Information:
This is the intended behavior according to POSIX.