Current Time Command Prompt Variable (.profile)

Another Sillyname anothersname at googlemail.com
Sat Oct 3 17:51:18 UTC 2009


Hi

In bash using .bashrc I can use export PS1="[\t]" to give me the
current time of any command prompt, useful if I need to run a command
and then see what time it finished when I come back to that session.

However \t doesn't work in .profile (nor does \A or \T) and no amount
of googling shows me an equivalent way of doing it, is it just a non
starter in a busybox session (I'm running busybox on an embedded
device I just aquired).

Thanks in advance


More information about the busybox mailing list