Skip to content

safe-bash: add getopt (enhanced long-option parser) #683

Description

@kamilio

Missing: getopt (the util-linux long-option parser). Only the POSIX getopts builtin (short options) exists.

Behavior: getopt -o SHORT --long LONG -- "$@" with -- termination and quoted re-emission. Note #667 (getopts O(n²)) is a separate perf bug in the builtin; this is the missing long-option command.

From the safe-bash command gap analysis (2026-09-08). Sandbox constraints apply: bounded input/CPU/memory, VFS-only paths, cooperative cancellation, no host process/network beyond the existing curl authorizer.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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