Hey all,
Is use debian lenny and kernel 2.6.26-2-xen-amd64 and want do show timestamps per command in bash history. It works an most machines, but one machine doesn't.
I export HISTTIMEFORMAT in "etc/profile":
Code:
export HISTTIMEFORMAT="%F %T "
I look it with user xyz, history works. If i 'su -', history works, too. But if i just 'su', there's no history saved.
If I export HISTTIMEFORMAT in /root/.bashrc, history works for "su", too.
Couriously, if i switch to root-user per "su", and I list the environment-variables with 'env', I can see that HISTTIMEFORMAT is set correctly, but seems to be ignored. No other History-Variables like HISTCONTROL are set.
As I told, the same configuration works on other machines without any problems. I would be pleased for every hint to understand this issue. Thx.