abiosoft / abiosoft/ishell

It's impossible to enter a literal tab (\t) in the shell

未關閉
#71 3 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Go
星號
1.8k
分支
213
PR 合併指標
30 天內沒有已合併 PR

描述

It seems `shlex` has quite weird behaviour for escaped characters.
If you enter:

```
>>> command "a\tb"
```

The argument you get will be `atb`. Typing an actual literal tab character is ignored by the shell, so it's also not possible to enter a tab that way.

I don't see a very easy way to fix this, especially since `shlex` is not maintained anymore. Would you be okay with a PR that removes the dependency on `shlex` and uses `strconv.Unquote()` to handle escaping and quoting?

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。