• [^] # Re: bash vs. sh ?

    Posté par (site web personnel) . En réponse au message Conky et condition (if). Évalué à 1.

    Et c'est encore mieux après un café... C'est la même chose avec [[ ... ]] :

    kibi@armor:~$ dash 
    $ if [[ "1" = "1" ]]; then echo "plop"; else echo "not good"; fi 
    dash: 1: [[: not found
    not good
    

    Debian Consultant @ DEBAMAX