bug#45648: `dd` seek/skip which way is up?

2021-01-04 Thread Bela Lubkin
TLDR: *huge* existing presence of 'iseek' and 'oseek'; most OSes document them as pure synonyms for 'skip' and 'seek'. The implementation where I encountered it was SCO OpenServer. Like Solaris, there was a distinction between 'iseek' and 'skip' ('skip' reads, 'iseek' seeks); no

bug#45648: `dd` seek/skip which way is up?

2021-01-03 Thread Bela Lubkin
Hello -- I constantly confuse 'seek=N' and 'skip=N'. The two words have no natural affinity to one I/O direction or the other. I previously encountered a `dd` implementation which also accepted 'oseek=N' and 'iseek=N', which I found far more natural and easy to remember. Here is a small patch