我的环境
OSX 10.11.6
zsh 5.0.8 (x86_64-apple-darwin15.0)
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin15)
Mono C# compiler version 4.0.5.0
测试.cs
class Test {
public static void Main() {
System.Console.WriteLine("hello, world");
}
}
测试.sh
#! /bin/bash
mcs -recurse:*.cs
我可以使用 ./test.sh 来编译 test.cs
但是如果我将 test.sh 更改为
#! /bin/zsh
mcs -recurse:*.cs
错误显示
./test.sh:3: no matches found: -recurse:*.cs
那么,为什么我不能使用 zsh?