On 10/5/22 6:29 PM, Robert Elz wrote:
Date: Wed, 5 Oct 2022 15:36:55 -0400
From: Chet Ramey <chet.ra...@case.edu>
Message-ID: <3d89acac-4c0a-64c9-e22c-1a3ca6860...@case.edu>
| Other than that, there's no advantage.
There can be. I have, on occasion (not in bash - I don't
write bash scripts) had a need to redefine one of the standard
commands, while executing a particular function (which calls other
more standard functions which run the command) - and define the
same command differently when running a different function, which
runs the same standard functions running the command, but in a
different way.
Sure, that's the conditional definition I talked about in my first reply.
The OP indicated that that wasn't his goal.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU c...@case.edu http://tiswww.cwru.edu/~chet/