Skip to content

feat(builtins): add fc builtin #576

@chaliy

Description

@chaliy

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions