P
Peng Yu
Hi,
In bash, set -v will print the command executed. For example, the
following screen output shows that the "echo" command is printed
automatically. Is there a similar thing in python?
~/linux/test/bash/man/builtin/set/-v$ cat main.sh
#!/usr/bin/env bash
set -v
echo "Hello World!"
~/linux/test/bash/man/builtin/set/-v$ ./main.sh
echo "Hello World!"
Hello World!
Regards,
Peng
In bash, set -v will print the command executed. For example, the
following screen output shows that the "echo" command is printed
automatically. Is there a similar thing in python?
~/linux/test/bash/man/builtin/set/-v$ cat main.sh
#!/usr/bin/env bash
set -v
echo "Hello World!"
~/linux/test/bash/man/builtin/set/-v$ ./main.sh
echo "Hello World!"
Hello World!
Regards,
Peng