Skip to content

xbps-install: Pressing Enter at confirmation prompt should ignore or require explicit input (prevent accidental proceed) #695

Description

@RandallFlagg

Description

When running xbps-install (e.g., sudo xbps-install -Su <pkgname>), XBPS prompts the user for confirmation before executing the transaction.

Currently, if the user hits Enter without typing an answer, XBPS treats it as a default affirmative and proceeds with the installation.

Proposed Change

Modify the prompt handling so that pressing Enter does not automatically proceed. Instead, pressing Enter should either be ignored (looping or requiring an explicit y/n response) or completely remove the automatic fallback to "yes" so that accidental keypresses don't initiate package transactions.

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