Skip to content

Commit

Permalink
doc: update bash.md (#312)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Feb 28, 2023
1 parent 36f071d commit 30fa592
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/bash.md
Original file line number Diff line number Diff line change
Expand Up @@ -1016,18 +1016,18 @@ echo "${args[@]}"
以调试模式运行脚本(整个脚本都会打印调试信息):
~~~bash
```bash
$ bash -x myscript.sh
~~~
```
在bash脚本中打开调试(针对部分内容打印调试信息)。
~~~bash
```bash
#!/bin/bash
set -x # Enable debugging
# some code here
set +x # Disable debugging output.
~~~
```
Bash 颜色
----
Expand Down

0 comments on commit 30fa592

Please sign in to comment.