abiosoft / abiosoft/ishell

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

Aberta
#71 3 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
Go
Estrelas
1.8k
Forks
213
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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?

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.