Bashism is serious.

Source: Internet
Author: User
Bashism is still very serious-Linux general technology-Linux programming and kernel information. The following is a detailed description. After using dash as the default sh, we gradually found many packages installed scripts (such as/etc/init. d) there are still many bashism problems, although they are all minor problems, such as writing ">/dev/null 2> & 1" into "&>/dev/null, it is still too troublesome to change, so today we have switched sh back to bash. Every bashism I found has been reported by others. Some have been around for a long time, but the maintainer of the package does not change it ......

Indeed, the speed difference between bash and dash script execution is easy to test. dash is indeed much faster, but for system startup, I really don't feel that the dash mentioned in Ubuntu can speed up the system startup. Debian plans to use dash as the default bash in lenny, and the description is "fix bashisms" instead of the so-called speed-up.

In devscripts, there is a tool checkbashisms that can help check some bashism, the effect is average, and there will be misjudgment.

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.