Backtick (`) in input causes error
Matir opened this issue · 4 comments
Matir commented
When a backtick is the first rune of a word, shlex seems to choke on it. If you run sample/simple:
go run .
foo » `ls`
error: invalid args: Unknown rune: 96
Might be a shlex bug, but there's no GitHub issues enabled there, so I decided to report it here.
skaldesh commented
Thanks! I'll look into it as well
skaldesh commented
Confirmed to be a shlex bug
skaldesh commented
Just found this library: https://github.com/anmitsu/go-shlex
It seems to fix some bugs (handling non-ASCII correct, for example), I will test whether it is of help for us