无论termial promt在文件系统中的什么位置,它都只建议从bin或sbin dir下载可执行文件。
看看这个。
Last login: Sun Apr 26 15:24:57 on ttys004
You have mail.
box:~ mee$ A
AppleFileServer AssetCacheLocatorUtil AssetCacheManagerUtil AssetCacheTetheratorUtil
box:~ mee$ which AppleFileServer
/usr/sbin/AppleFileServer
box:~ mee$
Display all 2636 possibilities? (y or n)
box:~ mee$ cd ~/Desktop/wp-content/
box:wp-content mee$ ls
index.php languages plugins themes upgrade uploads
box:wp-content mee$
Display all 2636 possibilities? (y or n)
box:wp-content mee$ A
AppleFileServer AssetCacheLocatorUtil AssetCacheManagerUtil AssetCacheTetheratorUtil
编辑: 我已经创建了一个新的管理员用户,看看问题是否还存在,但同样的错误也存在。
如果你是在完成可执行文件,那就和预期的一样,完成是跟着路径走的。如果你想在本地目录下完成,你可能需要输入以下信息 ./
在你按下完成键之前,因为经常 .
被排除在路径变量之外。
在这种情况下,完成是 "聪明 "的,它是把它认为是上下文的东西,用它来确定你想要的东西。在这种情况下,在行的开头,它认为你要完成的是一个可以实际执行的命令,因此它只会在路径中找到东西。