On 2019-08-31 at 11:38, The Wanderer wrote:

> On 2019-08-31 at 11:11, Roberto C. Sánchez wrote:

>> Don't misunderstand me.  I sometimes start interactive command
>> lines with 'cat' followed by a pipe.  When I do that it is out of 
>> convenience more than anything else.  However, if I am writing 
>> something intended for a script and/or trying to optimize for the 
>> criteria you earlier described, then starting with 'cat' with just 
>> unncessary clutter that makes it harder to quickly discern what is 
>> really happening.
> 
> I can see the argument for clutter, but for my purposes, the extra 
> syntax of the forms you've suggested are even more clutter and make
> the result even harder to read, thereby making it even harder to
> quickly discern what is really happening.
> 
> I suspect that this just boils down to minds working differently.

Belated addition: and, in fact, when I've written a script which I don't
expect to need to do this type of iteration on again, I often enough
will remove the 'cat' from the start of the pipeline and replace it with
normal input syntax for whatever command came at the next stage of the
pipeline, as a form of (probably premature) optimization.

I just don't bother avoiding cat during development (including when I
think the script may be revised again in the foreseeable future), or in
interactive use.

-- 
   The Wanderer

The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all
progress depends on the unreasonable man.         -- George Bernard Shaw

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to