Skip to content

Conversation

@jprorama
Copy link

This option is useful for working with files that have special characters like newlines embedded in them. It makes it it possible to pass this output to other downstream commands that can process null terminated strings, e.g. "parallel --null ..."

Added option string, new function MFU_PRED_PRINT0() and argument parsing to select this feature.

jprorama added 2 commits July 15, 2025 17:58
This option is useful for working with files that have special
characters like newlines embedded in them.  It makes it it possible
to pass this output to other downstream commands that can process
null terminated strings, e.g. "parallel --null ..."

Added option string, new function MFU_PRED_PRINT0() and
argument parsing to select this feature.
The null character wasn't showing up in the output because
it was included in the printf string format.
Had to add it as an explicit character to get \0 to be present
in the output.
@jbd
Copy link

jbd commented Sep 12, 2025

This would be a nice addition. I hacked something similar, but more intrusive than this patch which is much cleaner.

I actually need to use dwalk and dfind to find sockets and pipes files and use rsync to sync them. Using rsync from0 is less error prone considering you can have path with weird characters in them, like a newline.

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.

2 participants