为什么对路径中的目录使用'-execdir'操作不安全?
为什么不使用-execdirfind动作组合-exec却不安全呢? 当我运行以下命令时,我收到以下提示消息: /path/to/currentDir/$ find . -type f -name 'partOfFileNames*' -execdir rm -- {} + find: The current directory is included in the PATH environment variable, which is insecure in combination with the -execdir action of find. Please remove the current directory from your $PATH (that is, remove "." or leading …