add support for history expansions
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 14.2k
- Forks
- 851
- PR merge metrics
- No merged PRs in 30d
Description
It should be fairly easy to make the parser aware of history expansions so the matcher could give more accurate help for things like !!.
Original bug report by VolMi:
It appears as if the BASH man page is not included…?!?
At least the commandlinefu.com #1 commandsudo !!is not explained correctly.
But on my debian, the "!!" syntax is explained in man bash, like here:!! Refer to the previous command. This is a synonym for '!-1'.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the parser and matcher paths that handle command-line syntax, then compare their behavior with the Bash man-page definition of history expansion, especially !! as !-1. Done means commands such as sudo !! are parsed and explained accurately; the issue names no files or tests, so identify the relevant entry points and verification coverage first.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- bash, python
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100