Skip to content

[posix][P3] special-builtin violation under --posix -c exits 1, GNU exits 127 #589

Closed

Description

@caomengxuan666

niu --posix -c $'readonly ro=1\nro=2\necho after' -> rc 1; GNU bash --posix -c -> rc 127. Termination behavior itself matches (special builtins are fatal in posix mode); the -c exit code mapping diverges. stdin-script entry agrees with GNU (rc 1).

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions