Sponsored Links

 

 

 

Bash Style Guide and Coding Standard

Source: lug.fh-swf.de
Topic: Shell Programming


Short Desciption:
... of the shell and the system utilities. Occasionallytechnical journals publish articleson shell programming. ... Advanced Bash-Scripting Guide. http://www.tldp.org/LDP/abs/html/, 2006. Comprehensive tutorial ...

 

Content Inside:
Bash StyleGuide and Coding Standard Bash StyleGuide and Coding Standard With complementing comments on the testing of scripts Fritz Mehner Fachhochschule Südwestfalen, Iserlohn mehner@fh-swf.de Contents 1 Length of line 2 2 Indentation 2 3 Comments 2 3.1 Introductory comments in files. 2 3.2 Lineendcomments. 2 3.3 Sectioncomments. 2 3.4 Functioncomments. 3 3.5 Commenting style. 3 4 Variables and constants 3 4.1 Useofvariables. 3 4.2 Useofconstants. 4 5 Success verification 4 5.1 Commandline options. 4 5.2 Variables, commands and functions 4 5.3 Execution and summary reports. 5 6 Files 5 7 Command line options 6 8 Use of ShellBuiltin Commands 6 9 SUID/SGID-Scripts 7 10 Testing 7 10.1 Syntaxcheck. 7 10.2 Testscope. 8 10.3 Useof echo . 8 10.4 Testingusing bash options. 8 10.5 Testingbymeansof trap . 9 10.6 Thedebugger bashdb . 10 11 Furthersources of information 10 12 Summary 11 Often, script programming is considered to generate only rapid and hardly to understand"throwaway     solutions"which do not have to meet any specific quality requirements. However it is often ignored that there are many areas where long-living scripts are quite the rule: System management, start and configuration of operating systems, software installations, automation of user tasks and so on. And, of course, these solutions need to be maintained, extended and documented. When it comes to script programming therefore the same requirements have to be fulfilled than when programming inaproduction language (meeting the purpose, correctness of the solution, meeting the requirements, robustness, maintainability) and therefore the same standards have to be employed. A program can only be maintained, if its structure and effect can be understood easily by someone who has not written the program, so that successful changes can be executed in reasonable time. The way ...

 

add to Google Reader add to Google Bookmark add to bloglines add to newsgator add to FURL add to digg add to webnews add to Netscape add to Yahoo MyWeb add to spurl.net add to diigo Bookmark newsvine Bookmark del.icio.us Bookmark @ SIMPIFY Bookmark MISTER WONG Bookmark Linkarena Bookmark icio.de Bookmark oneview Bookmark folkd.com Bookmark yigg.de Bookmark reddit Bookmark StumbleUpon Bookmark Slashdot Bookmark blinklist Bookmark technorati add to blogmarks add to blinkbits add to ma.gnolia add to smarking.com add to netvouz add to co.mments add to Connotea add to de.lirio.us

 

Related PDF Files

UNIX Shell Programming


Topic: Shell Programming

... Options to the ps Utility Background Commands (&) Killing Background Processes Redirecting the Standard Error Shell Programming Concepts What is a Shell? What is a Shell Script? Why Use ...

Shell Programming for System Administrators


Topic: Shell Programming

Course Description. The Shell Programming for System Administrators course. provides students with the skills to read write and debug. UNIX shell scripts. ...

Win32 Shell Scripting Tutorial


Topic: Shell Programming

Batch files are used to automate repetitive command sequences in the command shell environment. In the context of batch programming the environment is ...

Unix POSIX Shell Programming - SVR4


Topic: Shell Programming

Perform string manipulation and integer arithmetic on shell variables Unix POSIX Shell Programming - SVR4

Shell Scripting with Scheme


Topic: Shell Programming

possible with Scheme. The focus of. this article is therefore on shell. programming as well as. programming for the Internet. Shell Scripting with Scheme ...

 

Sponsored Links