[PR #878] [CLOSED] Add missing checks and fix hexdump output #954

Closed
opened 2025-12-29 02:18:42 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dehydrated-io/dehydrated/pull/878
Author: @krayon
Created: 6/7/2022
Status: Closed

Base: masterHead: fix.04.hexdump-and-checks


📝 Commits (1)

  • 0dda789 Add missing checks and fix hexdump output

📊 Changes

1 file changed (+2 additions, -2 deletions)

View changed files

📝 dehydrated (+2 -2)

📄 Description

hexdump in the format used, output will sometimes be condensed for repeat characters and spaces may also be present at the end of the output. eg.

echo '111111111111111111111111111111112345'|hexdump -e '16/1 "%02x"'|sed 's#^#|#;s#$#|#'

OUTPUT:

|31313131313131313131313131313131*|
|323334350a                      |

Recommended instead:

echo '111111111111111111111111111111112345'|hexdump -v -e '/1 "%02x"'|sed 's#^#|#;s#$#|#'

OUTPUT:

|3131313131313131313131313131313131313131313131313131313131313131323334350a|

This also incorporates some missing checks such as for head, tail ( as per #877 ) and hexdump.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/dehydrated-io/dehydrated/pull/878 **Author:** [@krayon](https://github.com/krayon) **Created:** 6/7/2022 **Status:** ❌ Closed **Base:** `master` ← **Head:** `fix.04.hexdump-and-checks` --- ### 📝 Commits (1) - [`0dda789`](https://github.com/dehydrated-io/dehydrated/commit/0dda78960f81ace59be87636052ef7719c1a9c79) Add missing checks and fix hexdump output ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `dehydrated` (+2 -2) </details> ### 📄 Description `hexdump` in the format used, output will sometimes be condensed for repeat characters and spaces may also be present at the end of the output. eg. ```bash echo '111111111111111111111111111111112345'|hexdump -e '16/1 "%02x"'|sed 's#^#|#;s#$#|#' ``` OUTPUT: ``` |31313131313131313131313131313131*| |323334350a | ``` Recommended instead: ```bash echo '111111111111111111111111111111112345'|hexdump -v -e '/1 "%02x"'|sed 's#^#|#;s#$#|#' ``` OUTPUT: ``` |3131313131313131313131313131313131313131313131313131313131313131323334350a| ``` This also incorporates some missing checks such as for `head`, `tail` ( as per #877 ) and `hexdump`. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 02:18:42 +01:00
adam closed this issue 2025-12-29 02:18:42 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/dehydrated#954