Skip to content

Conversation

@last-genius
Copy link
Contributor

an early proof of concept while we are trying to figure out the details

@last-genius last-genius force-pushed the asv/history-expansion branch from a0733c8 to b847776 Compare December 19, 2025 16:59
This is in preparation to moving history expansion to the parsing stage.

Signed-off-by: Andrii Sultanov <sultanovandriy@gmail.com>
Split HistoryOp to four tokens to avoid inspecting the string in the
parsing stage, move them into the Lit kind.

Drop HISTORY_DEF, move tokens to _UNQUOTED.

Signed-off-by: Andrii Sultanov <sultanovandriy@gmail.com>
…istory

Signed-off-by: Andrii Sultanov <sultanovandriy@gmail.com>
This will change how the parser treats history expansion (!!), which is
only handled in interactive shells.

Signed-off-by: Andrii Sultanov <sultanovandriy@gmail.com>
It's quite primitive at the moment, just a proof of concept, and only
implements !! + !num

Signed-off-by: Andrii Sultanov <sultanovandriy@gmail.com>
@last-genius last-genius force-pushed the asv/history-expansion branch from b847776 to 5c91a99 Compare December 20, 2025 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants