
$ echo grep --exclude=*.html -R -i dialect .
grep --exclude=*.html -R -i dialect .
Bash가 파일 이름 확장을 수행하지 않는 이유는 무엇입니까 *
?
감사해요.
답변1
glob 패턴과 일치하는 파일이 없기 때문에--exclude=*.html
비교하다
$ echo grep --exclude=*.html -R -i dialect .
grep --exclude=*.html -R -i dialect .
하지만
$ touch -- '--exclude=foo.html'
$ echo grep --exclude=*.html -R -i dialect .
grep --exclude=foo.html -R -i dialect .