几天前,我在 Ubuntu 12.10 64 位机器上安装了 ZSH(和 Oh-My-ZSH)。我只是试图做:
time (time ls)
Run Code Online (Sandbox Code Playgroud)
并收到此错误:
zsh: command not found: time
( time ls; ) 0.00s user 0.00s system 64% cpu 0.002 total
Run Code Online (Sandbox Code Playgroud)
完全相同的事情在我的 Mac 上的 ZSH 上工作。
我也尝试运行 ZSH 而不加载任何配置文件,使用zsh -f -d
,但得到了同样的错误。
这里可能有什么问题?
一些可能有帮助的输出:
? ~ type -a time
time is a reserved word
? ~ time (type -a time)
time is a reserved word
( type -a time; ) 0.00s user 0.00s system 0% cpu 0.001 total
? ~ time (time) …
Run Code Online (Sandbox Code Playgroud)