• [^] # Re: Je vais vous dire...

    Posté par (site web personnel) . En réponse au journal Enfin un shell pour moi ?. Évalué à 2.

    Mais on ne peut pas (encore ?) lancer de progs

    Si si...

    http://ipython.scipy.org/doc/manual/node12.html(...)

    IPython as a system shell

    IPython ships with a special profile called pysh, which you can activate at the command line as `ipython -p pysh'. This loads InterpreterExec, along with some additional facilities and a prompt customized for filesystem navigation.

    Note that this does not make IPython a full-fledged system shell. In particular, it has no job control, so if you type Ctrl-Z (under Unix), you'll suspend pysh itself, not the process you just started.


    Et:

    Special syntax

    Any lines which begin with `~', `/' and `.' will be executed as shell commands instead of as Python code. The special escapes below are also recognized. !cmd is valid in single or multi-line input, all others are only valid in single-line input:

    !cmd
    pass `cmd' directly to the shell
    !!cmd
    execute `cmd' and return output as a list (split on `\n')
    $var=cmd
    capture output of cmd into var, as a string
    $$var=cmd
    capture output of cmd into var, as a list (split on `\n')


    Donc, c'est pas parfait, mais ça peut très largement dépanner.

    Le GROS inconvénient, c'est qu'il faut installer Python et iPython, alors que sh est toujours (presque) là.

    Votez les 30 juin et 7 juillet, en connaissance de cause. http://www.pointal.net/VotesDeputesRN