Bashdb debug shell scripts

Source: Internet
Author: User

 

Recently, I started to learn bash shell. I don't know where to start, and I don't know any good tool packages to learn it. First look:

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 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

 

We found that Bash-Doc and bashdb are documents by scholars. There are many example for reading. The latter can be used to debug shell and install them:

Yao @ wuyao :~ $ Sudo apt-Get install bash-Doc bashdb

The examples are stored in/usr/share/doc/bash/examples.

Debug bash in Emacs:

 

Debugging results:

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.