• # eval

    Posté par . En réponse au message Utiliser une concaténation de variable dans FOR. Évalué à 4.

    Tu peux utiliser la commande eval pour fabriquer une commande shell à partir de texte.

    Par exemple :

    $ unset Sat1
    $ x=Sat
    $ y=1
    $ $x$y=0 # incorrect
    bash: Sat1=0: command not found
    $ eval $x$y=0 # ça marche
    $ echo $Sat1
    0