Weird behavior of windows CMD when running groovy

后端 未结 2 1174
执念已碎
执念已碎 2021-01-13 02:48

I have a groovy script that renames files that match a regex I launch it this way

C:\\>groovy rename test.* test.txt

It works fine.

2条回答
  •  庸人自扰
    2021-01-13 02:49

    Check compilation options of groovy. It might be compiled with wildargs, which would cause the stdlib parser to wildcard-expand the regex.

提交回复
热议问题