dj(1)
: writing/reading should take place at seeked/skipped byte
#113
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?
From
DESCRIPTION
indj(1)
(docs branch):This is, in my view, undesirable. Suppose I want to use
dj
to programmatically write to various positions within a file, specified by a shell variable. I could construct a command such asdj -s $POS
, and would expect to be able to simply specify the first index (either 0 or 1 depending on the implementation) to write to the first byte in the file. The current implementation ofdj
actually behaves in this manner, with the byte indices starting at 0.While I view this as a good thing, there's a clear disagreement between the documentation and the implementation that needs to be rectified. Ideally, that rectification takes place within the docs, but this obviously warrants some discussion.
I am on the side of rectifying it in the docs: skipping and seeking should start reading and writing on the byte specified.
docsto djThis seems to have been fixed. #125 adds further clarification. Please reopen if you still have issue.
#134 further clarifies this.