我在 OSX 上使用 iTerm (3) 和prezto作为我的 zsh 配置框架。我在使用时收到一条奇怪的错误消息rsync
:
$ rsync -avz --exclude='.git' src/ remote:/dst
bash: rsync: command not found
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at /BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-51/rsync/io.c(453) [sender=2.6.9]
Run Code Online (Sandbox Code Playgroud)
当我检查路径时,rsync
我看到:
$ which rsync
rsync: aliased to noglob rsync
$ type -a rsync
rsync is an alias for noglob rsync
rsync is /usr/bin/rsync
Run Code Online (Sandbox Code Playgroud)
它似乎是使用noglob
宏的prezto 声明的别名。我也尝试调用 rsync 命令,/usr/bin/rsync
但没有帮助。
知道这里有什么问题吗?