Date: Wed, 12 Jun 2024 19:31:13 +0200 From: Angelo Borsotti <angelo.borso...@gmail.com> Message-ID: <cab9jk9ap+i2fgk_af4ph6nz3ohxujhanximqubzhhte5ags...@mail.gmail.com>
| I would stress the importance of this: the purpose of scripts is | to execute commands, Yes. | informing the caller of what they execute, No. If a script wants to provide output like that to the user it should do it explicitly. Then it has the ability to format that output in a form that makes sense for the script in question. But that kind of use should be rare - scripts should generally run silently, exactly the same as any other command. You wouldn't want "cat" to say "now opening file xxxx" "reading a buffer from file ..." ... "closing file xxx" or any other nonsense like that, would you? The output from a command (whether it is a script, or anything else) should be the desired result from what the command is designed to do. No more, no less. That means, often, nothing at all, if the command is not intended to produce output, and no error occurs. kre