abiosoft / abiosoft/ishell

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

オープン
#71 コメント 3 件 リアクション 0 件 担当者 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 を短くまとめたダイジェスト。