GNU bug report logs -
#45648
`dd` seek/skip which way is up?
Previous Next
Full log
View this message in rfc822 format
On 1/4/21 4:03 AM, Bela Lubkin wrote:
> I constantly confuse 'seek=N' and 'skip=N'. The two words have no natural
> affinity to one I/O direction or the other.
While the words 'seek' and 'skip' may not be strong enough for everyone
to be clear about whether they apply on input or output - e.g. for non-native
English speaker like myself - they are well documented in usage() and more places:
$ dd --help | grep -E ' (skip|seek)=N '
seek=N skip N obs-sized blocks at start of output
skip=N skip N ibs-sized blocks at start of input
FWIW these terms are required by POSIX:
https://pubs.opengroup.org/onlinepubs/9699919799/utilities/dd.html
> I previously encountered a `dd` implementation which also accepted
> 'oseek=N' and 'iseek=N', which I found far more natural and easy to
> remember.
What 'dd' implementation was this specifically?
> Here is a small patch implementing the same for coreutils `dd`.
In my opinion: if the word chosen for an option is not clear enough
to distinguish from another one, then adding yet another alias would
just increase confusion.
Adding options to coreutils programs has to be carefully chosen.
The only reason I'd see to add such an alias would be existing
behavior in one of the other major implementations.
Have a nice day,
Berny
This bug report was last modified 3 years and 86 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.