Skip to content

Instantly share code, notes, and snippets.

@remram44
Created January 23, 2015 21:14
Show Gist options
  • Select an option

  • Save remram44/81746e17668c8a202f8c to your computer and use it in GitHub Desktop.

Select an option

Save remram44/81746e17668c8a202f8c to your computer and use it in GitHub Desktop.
hexdump bugs
$ echo hello | hexdump -v -e "\"\\x\" 1/1 \"%02X\""
x68x65x6Cx6Cx6Fx0A
$ echo hello | hexdump -v -e "\"\\\\x\" 1/1 \"%02X\""
\\68\\65\\6C\\6C\\6F\\0A
expected: \x68\x65\x6C\x6C\x6F\x0A
$ echo hello | hexdump -v -e "1/1 \"\\x%02X\""
hexdump: %A: bad conversion character
$ echo hello | hexdump -v -e "1/1 \"\\\\x%02X\""
hexdump: %A: bad conversion character
@remram44

Copy link
Copy Markdown
Author

Filed #776096 against Debian.

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