dj(1) null-byte padding: -A
or -a ''
?
#101
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I wonder if the way to configure the padding byte used with synchronization of partial reads to
'\0'
should be changed from-A
to-a ''
; that is,-a
with an empty but present option argument.Changing this now won't make much of a difference for existing code; dj(1)'s padding and dd(1p)'s
conv=sync
are both very rarely used, the dj(1) feature only existing for parity with POSIX.There's precedent for both uses in other tools.
It may make more conceptual sense that
dj -a "\0"
works, but it may make less conceptual sense (to a novice) thatdj -a '' -i file
works butdj -a -i file
does not.Both uses would be treated as special cases in the code.
I'm leaning towards
-a ''
because I think it makes more sense and removes some clutter from the command synopsis.It would not be too hard to make both usages work.
I think this should be up to you.
Decided in #125;
dj -a ''
will be the new, only way to specify nul byte alignment padding.