Goal
Add the Bash fc builtin for history listing, editing, and re-execution workflows.
Why
If Bashkit is used as a daily shell, fc is a real quality-of-life builtin and part of the expected Bash surface area, especially once persistent history exists.
Scope
fc -l list history entries
fc -s old=new substitute and rerun previous command
- support history ranges where practical
- define behavior clearly when no editor/interactive mode is available
Design note
Bashkit likely needs a non-interactive-friendly interpretation for editor-based flows. Listing and substitution/re-exec are the highest-value parts. Full editor spawning may be out of scope or require a virtual editor hook.
Dependencies
This pairs naturally with a real history backend, but the issue can be tracked independently so semantics are decided early.
Goal
Add the Bash
fcbuiltin for history listing, editing, and re-execution workflows.Why
If Bashkit is used as a daily shell,
fcis a real quality-of-life builtin and part of the expected Bash surface area, especially once persistent history exists.Scope
fc -llist history entriesfc -s old=newsubstitute and rerun previous commandDesign note
Bashkit likely needs a non-interactive-friendly interpretation for editor-based flows. Listing and substitution/re-exec are the highest-value parts. Full editor spawning may be out of scope or require a virtual editor hook.
Dependencies
This pairs naturally with a real history backend, but the issue can be tracked independently so semantics are decided early.