Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

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

Open
#71 3 comments 0 reactions 0 assignees View on GitHub

@JelteF is already working on this.

Since Mar 26, 2018.

  • #84 by @JelteF — open

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
40/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
go
Domain
cli

Research direction

The issue is about the shell's argument parsing, likely in the code that uses shlex. Look for where command-line input is split into arguments, possibly in a lexer or parser module. Investigate how escaped characters are handled and consider replacing shlex with strconv.Unquote as suggested. Test by trying to input a literal tab character and verifying the argument is correctly preserved.

Written by the indexing model from the issue text.

Description

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?

Dominant language
Go
Stars
1.8k
Forks
213
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from abiosoft/ishell

All issues in abiosoft/ishell

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.