我想复制我目前所在的目录。我试过了 cp -a . ~/xyz
cp -a . ~/xyz
它复制了目录的内容,但这有效:cp -a "$(pwd)" ~/xyz [根据需要,这也复制了包装内容的目录。]
cp -a "$(pwd)" ~/xyz
Dot 似乎在做 Splat 会做的事情......为什么不起作用.?
.
shell directory cp
cp ×1
directory ×1
shell ×1