bashdb调试shell脚本

 

最近开始学bash shell,感觉不知道从何入手,不知道有什么好的工具软件包来学习它。先找一下:

yao@wuyao:~$ apt-cache search bash
apparix - console-based bookmark tool for fast file system navigation
backup-manager - command-line backup tool
bash - The GNU Bourne Again SHell
bash-builtins - Bash loadable builtins - headers & examples
bash-completion - programmable completion for the bash shell
bash-completion-lib - programmable completion for the bash shell
bash-doc - Documentation and examples for the The GNU Bourne Again SHell
bash-minimal - The GNU Bourne Again SHell (minimal version)
bash-static - The GNU Bourne Again SHell (static version)
bashdb - BASH debugger
biabam - bash attachment mailer

 

发现bash-doc和bashdb,学者是文档,有不少Example可以看,后者可以用来调试shell,把它们给安装了:

yao@wuyao:~$ sudo apt-get install bash-doc bashdb

例子都放在/usr/share/doc/bash/examples。

在emacs里调试bash:

 

调试效果:

bashdb调试shell脚本_第1张图片

 

你可能感兴趣的:(shell,bash,search,System,documentation,emacs)