DCEM's bash script howto: Unterschied zwischen den Versionen
Aus Hackerspace Ffm
DCEM (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „I'm not vell versed in using bash script and here I store the information that I think is useful. [https://google.github.io/styleguide/shell.xml Google Style…“) |
DCEM (Diskussion | Beiträge) |
||
Zeile 1: | Zeile 1: | ||
I'm not vell versed in using bash script and here I store the information that I think is useful. | I'm not vell versed in using bash script and here I store the information that I think is useful. | ||
+ | |||
+ | == Code Style == | ||
+ | I use bashate as lint tool: | ||
+ | [https://github.com/openstack/bashate bashate] | ||
[https://google.github.io/styleguide/shell.xml Google Style Guides: Shell] | [https://google.github.io/styleguide/shell.xml Google Style Guides: Shell] | ||
− | Indentations | + | === Indentations === |
− | I like to be able to copy and paste parts of a shell script to the shell. | + | I like to be able to copy and paste parts of a shell script directly to the shell. |
− | + | Indentations with tabs will cause problems here. |
Version vom 8. Januar 2020, 12:44 Uhr
I'm not vell versed in using bash script and here I store the information that I think is useful.
Code Style
I use bashate as lint tool: bashate
Indentations
I like to be able to copy and paste parts of a shell script directly to the shell. Indentations with tabs will cause problems here.