• [^] # Re: Pourquoi en C ?

    Posté par . En réponse au message from Bash to C. Évalué à 3.

    le fait de remplacer le binaire 'ls' par un script - disons bash ou python - ne posera aucun problème aux différents autres binaires (ou scripts) qui appelaient le binaire original?
    Exactement.
    Il suffit d'aller faire un tour dans /bin ou /usr/bin pour voir que c'est déjà le cas:


    $ file /bin/* | grep script
    /bin/bzdiff: POSIX shell script text executable
    /bin/bzexe: POSIX shell script text executable
    /bin/bzgrep: POSIX shell script text executable
    /bin/bzmore: POSIX shell script text executable
    /bin/gunzip: Bourne-Again shell script text executable
    /bin/gzexe: Bourne-Again shell script text executable
    /bin/lesspipe: POSIX shell script text executable
    ...