|
Post by George on Mar 25, 2022 11:57:23 GMT -5
Robert: The problem with the DEL command is complex. It ultimately comes down to code which allows users to enter commands line DELETE .1 .999999 to effectively delete to end of file. Any number higher than LastLine, is converted to LastLine. So, if you have a 5 line file, and enter DEL .10 .20 it ends up being treated as Del .5 .5 and the last line gets deleted. Now, do we drop support for the 999999 line number and say to use .ZL? Leave things alone? George
|
|
|
Post by George on Mar 25, 2022 13:48:24 GMT -5
Robert: I agree the 9999 crutch should 'go away'.
However I simply can't go along with supporting the naked ZF and ZL. C'mon, the . is hard to type? It's not even a shifted character. And the leading . explicitely says "this is a line reference" while with ZF or ZL you have to 'know' they relate to line numbers.
George
|
|
|
Post by George on Mar 27, 2022 13:12:29 GMT -5
Robert: Call me confused. Current SET variables are already substituted throughout the command line, so clue me in as to how ARG works. Is it that ARG's wouldn't need the = ?
George
|
|
|
Post by George on Mar 28, 2022 8:07:12 GMT -5
Robert: The way ARG works, why do we even need it? Why not just make the normal SET variable into an "equal optional" variable.
We keep the leading = for existing usage, but make it optional. Then ALL SET variables become the new ARG style.
George
|
|
|
Post by George on Mar 28, 2022 13:58:53 GMT -5
Your points on dropping the = are quite valid. But reversing that it means all the ARG settings you're asking for are 'dangerous' for the same reasons. We can't really say "only use ARG for strings which are un-common or obscure".
Thinking about it, I can't think of any other system where substitution strings are not specifically ID'd. Like &var, %var%, ~w, etc. Maybe the whole ARG idea should be discarded.
George
|
|
|
Post by George on Mar 28, 2022 14:17:18 GMT -5
Robert: There's many ways to handle the internals, that's not the problem, nor is it the effort involved. Whatever effort we'd do has to be looked at in terms of where we started - - - trying to avoid typing a single, non shifted character. i.e. just ZF instead of .ZF
I'm just not seeing a payback.
George
|
|
|
Post by George on Mar 29, 2022 13:08:08 GMT -5
Robert: I've yanked the code that interprets all line-numbers > LastLine as being = to LastLine. So this accidental deletion of the last line (or other similar weirdness) should be gone.
But yes, ARG is dead.
George
|
|