• [^] # Re: Bien choisir son shell

    Posté par . En réponse au journal Bien choisir son shell. Évalué à 1.

    sash (stand-alone shell) est particulier: Il est compilé de manière statique et posséde tout un tas de commande intégrées:

    $ man sash
    ...
    These built-in commands are:

    -ar, -chattr, -chgrp, -chmod, -chown, -cmp, -cp,
    -dd, -echo, -ed, -grep, -file, -find, -gunzip,
    -gzip, -kill, -ln, -ls, -lsattr, -mkdir, -mknod,
    -more, -mount, -mv, -printenv, -pwd, -rm, -rmdir,
    -sum, -sync, -tar, -touch, -umount, -where
    ...

    $ ldd /bin/sash
    not a dynamic executable
    $ ldd /bin/bash
    libncurses.so.5 => /lib/libncurses.so.5 (0x40032000)
    libdl.so.2 => /lib/libdl.so.2 (0x40071000)
    libc.so.6 => /lib/libc.so.6 (0x40074000)
    /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

    Et tout ça en a peine plus de 500 Ko