Steven Schubiger wrote:
Matthew Woehlke wrote:
So I guess it's important to specify if '-1' means "the last line", or
"the n'th-to-last last line (n==1 in this example)" (in which case '-0'
means something). Similarly, if 'n,+k' means "k line(s), starting at n"
or "line n plus k line(s)".
I fail to see where your descriptions don't apply to the current
working mechanism (implying that I eventually don't fully grok your
wording).
Probably, because...
Possibly best to pick so that '-0' and '+0' both either make sense
or do not make sense. I think I lean towards being all one-based.
I wouldn't want to use '+0' & '-0', because '+0' is basically a
no-op and assigning '-0' a meaning when '-1' does the same, seems
superfluous. We could emit some kind of outbound-error though.
...you obviously feel that '+0' means 'output no lines' and the last
line is '-1', not '-0'. (There is nothing wrong with this, I was just
noting that this is not the only possible interpretation.) Now that we
agree on our definitions, we (by which I mean "I") just need to try not
to mix them up :-).
--
Matthew
morphir: so much confusion :S kmake, kdemake, qmake make cmake etc.
logixoul: you forgot cmakekde :)
morphir: and bakemeacake
_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils