26 lines
792 B
Markdown
26 lines
792 B
Markdown
|
en gros ici on vérifie ce qu'il se passe quand on essaye d'utiliser une variable qui n'existe pas.
|
||
|
|
||
|
Exemple :
|
||
|
|
||
|
bake =
|
||
|
moncef@MacBook-Pro-de-Moncef bake % bake
|
||
|
Création du fichier
|
||
|
touch test.txt
|
||
|
Essai de création d'un fichier avec une variable qui n'existe pas
|
||
|
touch $(NOM_FICHIER2)
|
||
|
sh: NOM_FICHIER2: command not found
|
||
|
usage: touch [-A [-][[hh]mm]SS] [-achm] [-r file] [-t [[CC]YY]MMDDhhmm[.SS]]
|
||
|
[-d YYYY-MM-DDThh:mm:SS[.frac][tz]] file ...
|
||
|
bake: *** [main] Error 1
|
||
|
|
||
|
|
||
|
make =
|
||
|
|
||
|
moncef@MacBook-Pro-de-Moncef make % make
|
||
|
Création du fichier
|
||
|
touch test.txt
|
||
|
Essai de création d'un fichier avec une variable qui n'existe pas
|
||
|
touch
|
||
|
usage: touch [-A [-][[hh]mm]SS] [-achm] [-r file] [-t [[CC]YY]MMDDhhmm[.SS]]
|
||
|
[-d YYYY-MM-DDThh:mm:SS[.frac][tz]] file ...
|
||
|
make: *** [main] Error 1
|