27;
This shows properly the command, but also shows @echo-off. I.e.
'{ set +v; } 2>/dev/null' shows itself.
I have no idea how to suppress this.
-Angelo Borsotti
On Thu, 13 Jun 2024 at 08:28, Angelo Borsotti
wrote:
> Dear all,
>
> thank you very much for your quick
Dear all,
thank you very much for your quick replies. The solution:
alias @echo-on='set -x'
alias @echo-off='{ set +x; } 2>/dev/null'
PS4=
Solves the problem, and relieves from writing "echo COMMAND" before each
command that should be shown.
-Ange
o come to the commands.
Many solutions are posted in the internet, all of them are hacks with
lots of edge cases that make them fail in presence of commands
containing special characters, redirections, substitutions, etc.
Thank you
-Angelo Borsotti