cygwin64完成工作更多,但不适用于ls或cd(-bash:读取:读取错误)

时间:2018-07-06 12:44:17

标签: bash cygwin completion

运行cygwin64,bash控制台上文件/目录的完成可用于more命令,即:

  

更多/ cydrive / d /

,但不适用于ls / cd / source或尝试直接启动脚本时。当按下选项卡时,我直接收到“ -bash:读取:读取错误:0:权限被拒绝”消息。任何随后的按Tab键都会重复该消息。然后,Enter在按下选项卡之前执行命令。例如:

$img = $c->getAttribute('blogimage');
if ($img !== null) {
    $imgVersion = $img->getVersion();
    $thumbnailURL = $imgVersion->getThumbnailURL('small');
    ?><img src="<?= $thumbnailURL ?>" /><?php
}

按下Tab键6次,并且密码为“ /”

> cd /-bash: read: read error: 0: Permission denied
-bash: read: read error: 0: Permission denied
-bash: read: read error: 0: Permission denied
-bash: read: read error: 0: Permission denied
-bash: read: read error: 0: Permission denied
-bash: read: read error: 0: Permission denied

但是可以执行更多命令:

> ls /-bash: read: read error: 0: Permission denied
-bash: read: read error: 0: Permission denied

bin         Cygwin.ico           etc   llvm-objdump.exe.stackdump  sbin       tmp
cygdrive    Cygwin-Terminal.ico  home  opt                         share  usr
Cygwin.bat  dev                  lib   proc                        srv    var

按两次标签可以很好地显示/

的内容

有任何提示吗?

谢谢

0 个答案:

没有答案