Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要使用随源提供的 build.sh 构建一个库。它包含一个 globstar 路径 ( src/**/*.java)。我启用了 globstarshopt -s globstar并且所有工作都在终端上很好,但来自 bash 文件:
src/**/*.java
shopt -s globstar
#!/bin/bash ls **/*.java
我收到以下错误:
ls: cannot access **/*.java: No such file or directory
就放
也进入脚本。