npm will use the /bin/sh
Bourne shell implementation rather than the current interactive shell of a user, whatever that may be (or cmd.exe
on MS platforms).
In an interactive zsh shell:
% echo $0
zsh
Running npm
from the same interactive shell:
% npm run shell
> [email protected] shell /so/so65660483-npm-shell
> echo $0
sh
cp
supports copying multiple files without relying on shell globbing in any case:
cp target/sitemap.xml target/robots.txt ../fs-dtest-app/
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…