Skip to content

safe-bash: support standard zip -q and unzip -p options #723

Description

@kamilio

Problem

@poe-platform/safe-bash 0.1.549 registers ZIP commands, but standard Info-ZIP options used in scripts are rejected:

  • zip -q archive.zip file fails with Invalid command arguments (unsupported option: -q).
  • unzip -p archive.zip file fails with unsupported option: -p.

Observed while upgrading poe-internal/poe2's agent shell. Basic zip archive.zip file and unzip archive.zip -d directory are the supported forms; the missing options are compatibility gaps, not requests for a new shell dialect. The initial ZIP implementation was tracked in #687.

Expected behavior

Match standard command behavior: zip -q suppresses normal progress output while preserving diagnostics and exit status; unzip -p writes selected members' bytes to stdout, enabling pipelines without extraction to disk.

Please add compatibility tests against the standard tools, including binary bytes, selected members, missing members, cancellation, output limits, and failure/exit semantics. Keep the existing bounded VFS and decompression protections.

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