The Executed Command

$BASH_COMMAND is the command currently executed or about to be executed.

Examples

Print the current command :

1
echo "Hello, command: $BASH_COMMAND"

Output: Hello, command: echo "Hello, command: $BASH_COMMAND".

BashSupport Pro 是一个 支持 $BASH_COMMAND 的 Bash 集成开发工具 – 马上试用!
© 2020–2022 Joachim Ansorg
声明
隐私政策
许可条款