如何在groovy中为字符串的execute方法提供包含空格的参数?只是在shell中添加空格就无济于事:
println 'ls "/tmp/folder with spaces"'.execute().text
这将为ls调用提供三个破坏的参数.
groovy
groovy ×1