DCEM's bash script howto: Unterschied zwischen den Versionen

Aus Hackerspace Ffm
Wechseln zu: Navigation, Suche
(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…“)
 
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.
Inden
+
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

Google Style Guides: Shell

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.