ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,495
Rep:
The standards it follows are those defined for POSIX sh. But it also has extensions in addition to that. A few things in bash are not 100% POSIX sh compliant, but bash can be invoked in a way that it is.
Quote:
Invoking Bash with the --posix option or stating set -o posix in a script causes Bash to conform very closely to the POSIX 1003.2 standard.
Here's some useful links from the topic at the bash channel on irc.
Thanks rosehosting.com, that is exactly what I am looking for
Thanks fakie_flip but it is coding standards not language standards I am looking for
Thanks steelneck ABS does have "Chapter 35, Scripting With Style" but it has only one section: 35.1. Unofficial Shell Scripting Stylesheet and that looks like an early draft.
You know, I don't like that style guide. However, I can't really provide a good style guide. In bash it's not too important, because it's mostly readable. You know maybe I'll write my own style guide and put it on a wiki somewhere.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.