• [^] # Re: Impossible

    Posté par . En réponse au message Communication entre processus avec pipe() et dup2().. Évalué à 2.

    Pour le problème de prompt, essaie d'utiliser bash -il

    Extrait de bash:

     -i If the -i option is present, the shell is interactive.
     -l Make bash act as if it had been invoked as a login shell (see
     INVOCATION below).
    

    Une autre option qui pourrait t'intéresser:

    
     -s If the -s option is present, or if no arguments remain after
     option processing, then commands are read from the standard
     input. This option allows the positional parameters to be
     set when invoking an interactive shell or when reading input
     through a pipe.