Re: Echoing commands

2024-06-13 Thread Angelo Borsotti
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

Re: Echoing commands

2024-06-12 Thread Angelo Borsotti
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

Echoing commands

2024-06-12 Thread Angelo Borsotti
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