shell 脚本拷贝文件,报cannot stat : no such file or directory

有这个目录下的文件!

哇!!我吐血了

因为公司有白盒要求,所以路径的变量都是用双引号包含的

cp "${xxxpath}/*.h" "${xxxPath}"

啊啊啊 不能把*.h放在“”里面,会被认成一个整体的。

cp "${xxxpath}"/*.h "${xxxPath}"

posted @ 2020-11-23 17:10  ginn123  阅读(1472)  评论(0)    收藏  举报