# HG changeset patch
# User devi
# Date 1139006842 -7200
# Node ID d499fa3b2af1e2149ae2204095c8b636d7a31e05
# Parent 6f5ad37fc8d9e532e67ccba3c6328fdf550be477
Na lilalo@moskau.xt.vpn uspeshno zavelos i\
zarabotalo. + Sohranenie istorii pri vyhode
diff -r 6f5ad37fc8d9 -r d499fa3b2af1 l3-cgi
--- a/l3-cgi Fri Feb 03 22:49:46 2006 +0200
+++ b/l3-cgi Sat Feb 04 00:47:22 2006 +0200
@@ -84,6 +84,7 @@
my $h = $t->{host}->{$host};
$print .= "$host";
$print .= " ".$h->{firstname}." ".$h->{surname}." ";
+ $print .= " ".$h->{company}." ";
$print .= "root ";
$print .= "".$h->{user}." ";
$print .= "\n";
diff -r 6f5ad37fc8d9 -r d499fa3b2af1 l3bashrc
--- a/l3bashrc Fri Feb 03 22:49:46 2006 +0200
+++ b/l3bashrc Sat Feb 04 00:47:22 2006 +0200
@@ -21,6 +21,8 @@
_l3_env()
{
+ trap _l3_close_session 2
+ trap _l3_close_session EXIT
true
}
@@ -35,8 +37,8 @@
_l3_start_session()
{
- L3_SESSION_ID=${L3_TTY##*/}-$$
- L3_HOME=~/.lilalo/
+ export L3_SESSION_ID=${L3_TTY##*/}-$$
+ export L3_HOME=~/.lilalo/
mkdir -p $L3_HOME
uname -a | grep -qi bsd && bsd=yes
@@ -77,6 +79,10 @@
_l3_close_session()
{
- history > $L3_HOME/$L3_SESSION_ID.info
+ (
+ echo ''
+ history | sed 's/&/\&/; s/\</g; s/>/\>/g'
+ echo ''
+ ) >> $L3_HOME/$L3_SESSION_ID.info
}