4
工作對於Cygwin的某種原因,波浪線擴展在提示符下不工作對我來說:cygwin的波浪線擴展在交互式外殼
$ ls ~
ls: cannot access : No such file or directory
$ ls ~/bin
(lists /bin not $HOME/bin)
$ echo $HOME
/home/myusername
$ echo ~
$
在最後一種情況存在(echo ~
)沒有輸出(比其他幾條空行)。
我有set expand-tilde on
設置在我的$HOME/.inputrc
文件中。有什麼我需要配置?
剛安裝了Cygwin,並且該文件不存在。 – nilskp
@nilskp我認爲Cygwin現在可能已經停止使用'/ etc/passwd',所以我不確定當前的解決方案是什麼。您最好的選擇是通過電子郵件發送[Cygwin郵件列表](https://cygwin.com/lists.html)。 –
該文件的Windows路徑是/ cygwin64/etc/passwd(如果您使用基於Windows的編輯器編輯它,則不會看到/ etc/passwd)。 – mosh