cp exits with a 64 error status
问题 I am using a preflight bash script in packagemaker : run cp -pf "/folder/to/my/db" "/Library/Application Support/app/db The run function (that I found on StackOverflow by the way) : run() { $*; code=$?; [ $code -ne 0 ] && echo "command [$*] failed with error code $code\nERROR: $@\n"; } The command cp returns a 64 code. What is this 64 status please? How can I resolve that? 回答1: The problem is that you don't have a folder Support/app/db for the command to copy files /folder/to/my/db and