abiosoft / abiosoft/ishell

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

Abierto
#71 3 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Go
Estrellas
1.8k
Forks
213
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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?

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.