Skip to content

Conversation

@vicky-dx
Copy link
Contributor

The p8s command was printing space-separated hex bytes, which was not intuitive. Many users expect it to print escaped hex strings like pcs does (e.g., "\x68\x65\x6c\x6c\x6f").

Changes:

  • Changed p8s to call pcs internally
  • Updated help message to clarify p8s is now an alias for pcs
  • Provides more intuitive behavior for creating escaped strings

Before:
p8s 11 → 68 65 6c 6c 6f 20 77 6f 72 6c 64

After:
p8s 11 → "\x68\x65\x6c\x6c\x6f\x20\x77\x6f\x72\x6c\x64"

This makes p8s behave as users naturally expect when looking for escaped hex string output.

Fixes #10058

The p8s command was printing space-separated hex bytes, which was
not intuitive. Many users expect it to print escaped hex strings
like pcs does (e.g., "\x68\x65\x6c\x6c\x6f").

Changes:
- Changed p8s to call pcs internally
- Updated help message to clarify p8s is now an alias for pcs
- Provides more intuitive behavior for creating escaped strings

Before:
  p8s 11  →  68 65 6c 6c 6f 20 77 6f 72 6c 64

After:
  p8s 11  →  "\x68\x65\x6c\x6c\x6f\x20\x77\x6f\x72\x6c\x64"

This makes p8s behave as users naturally expect when looking
for escaped hex string output.

Fixes radareorg#10058
@vicky-dx vicky-dx changed the title Fix #10058 - Make p8s an alias for pcs (escaped hex string) Make p8s an alias for pcs (escaped hex string) Fix #10058 Oct 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

p8s should do the same as pcs

1 participant