Outils pour utilisateurs

Outils du site


informatique:bash

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
informatique:bash [2020/08/29 16:37] – [Bash] alexisinformatique:bash [2022/08/14 18:48] (Version actuelle) – [Bonnes pratiques] alexis
Ligne 12: Ligne 12:
   - [[https://www.linuxjournal.com/content/bash-trap-command|The Bash Trap Command | Linux Journal]]   - [[https://www.linuxjournal.com/content/bash-trap-command|The Bash Trap Command | Linux Journal]]
   - [[http://www.linuxjournal.com/content/validating-ip-address-bash-script|Validating an IP Address in a Bash Script | Linux Journal]]   - [[http://www.linuxjournal.com/content/validating-ip-address-bash-script|Validating an IP Address in a Bash Script | Linux Journal]]
 +  - [[https://linuxhint.com/debug_bash_script-2/|How to debug a bash script? – Linux Hint]]
 +  - [[https://wizardzines.com/comics/bash-errors/|bash errors]]
 +  - [[https://betterdev.blog/minimal-safe-bash-script-template/|Minimal safe Bash script template | Better Dev]]
 </WRAP> </WRAP>
  
Ligne 18: Ligne 21:
  
 ===== Bonnes pratiques ===== ===== Bonnes pratiques =====
-<WRAP todo>+Liste de pages recensant les bonnes pratiques à appliquer lors de l'écriture de scripts :
   * [[http://redsymbol.net/articles/unofficial-bash-strict-mode/|Bash Strict Mode]]   * [[http://redsymbol.net/articles/unofficial-bash-strict-mode/|Bash Strict Mode]]
   * [[https://blog.seboss666.info/2020/04/programmation-defensive-en-bash/|Programmation défensive en bash – Le blog de Seboss666]]   * [[https://blog.seboss666.info/2020/04/programmation-defensive-en-bash/|Programmation défensive en bash – Le blog de Seboss666]]
   * [[http://shaarli.guiguishow.info/?gKD9Ow|Quand le gruik découvre set -e et trap ERR - GuiGui's Show]]   * [[http://shaarli.guiguishow.info/?gKD9Ow|Quand le gruik découvre set -e et trap ERR - GuiGui's Show]]
   * [[https://ashishb.net/all/the-first-two-statements-of-your-bash-script-should-be/|The first two statements of your BASH script should be…]]   * [[https://ashishb.net/all/the-first-two-statements-of-your-bash-script-should-be/|The first two statements of your BASH script should be…]]
-</WRAP>+  * [[https://mywiki.wooledge.org/BashPitfalls|BashPitfalls - Greg's Wiki]] 
 +  * [[https://gist.github.com/mohanpedala/1e2ff5661761d3abd0385e8223e16425|set -e, -u, -o, -x pipefail explanation · GitHub]] 
 +  * [[https://mywiki.wooledge.org/BashFAQ/035|BashFAQ/035 - Greg's Wiki]] 
 + 
 + 
  
  
Ligne 158: Ligne 166:
 <WRAP info> <WRAP info>
 Pour aller plus loin avec l'historique : Pour aller plus loin avec l'historique :
 +  * [[https://www.thegeekstuff.com/2008/08/15-examples-to-master-linux-command-line-history/|15 Examples To Master Linux Command Line History]]
   * [[http://www.tux-planet.fr/ajouter-la-date-et-lheure-dans-lhistorique-de-bash/|Ajouter la date et l'heure dans l'historique de bash - Tux-planet]]   * [[http://www.tux-planet.fr/ajouter-la-date-et-lheure-dans-lhistorique-de-bash/|Ajouter la date et l'heure dans l'historique de bash - Tux-planet]]
   * [[https://sanctum.geek.nz/arabesque/better-bash-history/|Better Bash history | Arabesque]]   * [[https://sanctum.geek.nz/arabesque/better-bash-history/|Better Bash history | Arabesque]]
Ligne 423: Ligne 432:
   * [[https://wiki.bash-hackers.org/|The Bash Hackers Wiki [Bash Hackers Wiki]]]   * [[https://wiki.bash-hackers.org/|The Bash Hackers Wiki [Bash Hackers Wiki]]]
   * [[https://devhints.io/bash|Bash scripting cheatsheet]]   * [[https://devhints.io/bash|Bash scripting cheatsheet]]
 +  * [[https://shellmagic.xyz/|Shell Magic - The Ultimate Bash Cheatsheet!]]
 +
  
  
  
  
informatique/bash.1598744268.txt.gz · Dernière modification : 2020/08/29 16:37 de alexis