Вторник (05/13/08)

/dev/ttyp0
13:43:25
$[ ]
    uname -a | grep -qi bsd && bsd=yes
    flush="-f"                          #linux
{   [ -n "$bsd" ] && flush="-t 0"       #freebsd
{
    export L3_PARENT_TTY=`/usr/bin/tty`
    exec script $flush -q $L3_HOME/${L3_SESSION_ID}.script
}
}
# ===================== STAGE 2 ============================
_l3_env()
       ()
    trap l3_close_session 2
{   trap l3_close_session EXIT
{
    true
}
}
l3_close_session()
{
    (
        echo '<history>'
{       history | sed 's/&/\&amp;/; s/</\&lt;/g; s/>/\&gt;/g'
{
        echo '</history>'
    ) >> $L3_HOME/$L3_SESSION_ID.info
}
}
_l3_init_prompt()
{
    PS1='[\u@\h:\W]\$ '
    [ $UID = 0 ] \
{       && PS1='\[\033[0;31m\]'$PS1'\[\033[0m\]' \
{
        || PS1='\[\033[0;32m\]'$PS1'\[\033[0m\]' \
    export PS1
}
}
l3_fix_prompt()
{
{                                                                                                                                                                                             130,1         26%