informatique:linux:programmation_shell
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
informatique:linux:programmation_shell [2019/12/10 07:57] – pteu | informatique:linux:programmation_shell [2020/01/08 10:52] – [Typage] pteu | ||
---|---|---|---|
Line 61: | Line 61: | ||
echo ${VAR=defaut} | echo ${VAR=defaut} | ||
echo ${VAR: | echo ${VAR: | ||
+ | </ | ||
+ | |||
+ | =====Typage===== | ||
+ | |||
+ | Il n'y a pas de typage strict en bash, toutes les variables sont considérées comme des chaînes de caractères, | ||
+ | |||
+ | Pour " | ||
+ | <code bash> | ||
+ | is_ready=true | ||
+ | if [ " | ||
+ | then echo " | ||
+ | else echo " | ||
+ | fi | ||
</ | </ | ||
informatique/linux/programmation_shell.txt · Last modified: 2023/10/02 13:35 by pteu