• # correction

    Posté par . En réponse au message [Terminal] Faire marcher des scripts sh non posix sur Linux. Évalué à 1.

    D'après le manuel de Bash 2.05, si on tape 'set -o posix ', cela _active_ le mode posix. En tapant 'set +o posix ', on revient au mode par défaut, qui "diffère du standard POSIX 1003.2", donc, non-posix.

    SHELL BUILTIN COMMANDS

    set [--abefhkmnptuvxBCHP] [-o option] [arg ...]

    -o option-name
    The option-name can be one of the follow­ing:

    posix Change the behavior of bash where
    the default operation differs from
    the POSIX 1003.2 standard to match
    the standard (posix mode).


    The options are off by default unless otherwise
    noted. Using + rather than - causes these options
    to be turned off. The options can also be speci­
    fied as arguments to an invocation of the shell.
    The current set of options may be found in $-. The
    return status is always true unless an invalid
    option is encountered.