XPost: comp.unix.shell
On Sat, 16 Sep 2023 09:10:28 -0000 (UTC)
[email protected] (Kenny McCormack) wrote:
In article <ue3qnr$3omqt$[email protected]>, <[email protected]> wrote: >....
Seems to me far too many people try and use shell script way beyond what it >>was intended to do - ie navitage the file system, link commands together and >>job control - and use it where they'd be far better off simply using perl or >>python (or even awk) which leads shell authors to bung in features no sane >>person in their right mind would ever need, never mind use.
You know what they say about opinions.
Everybody's got one.
I don't present mine as fact. Plenty of others do. Plus I've been working
on *nix for 30 years and only twice have I seen anyone try and get clever
with shell scripts , in one case using co-process in bash. In both cases
their code was fragile and didn't cope with edge cases and they'd have been better off writing it in a language that had far better error handling.
$? and trap simply don't cut it beyond a certain level of complexity.
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)