From: Richard Jones Date: Fri, 5 Mar 2010 14:11:58 +0000 (+0000) Subject: functions: Add a sleep before changing command history. X-Git-Tag: 1.0.0~13 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=03c4d8238c544ee193fdb26c7acc2bbdf89e0824;p=techtalk-pse.git functions: Add a sleep before changing command history. --- diff --git a/examples/simple/functions b/examples/simple/functions index c1e12a3..cb34080 100644 --- a/examples/simple/functions +++ b/examples/simple/functions @@ -1,5 +1,10 @@ # -*- shell-script -*- +# Need a short sleep to allow the previous shell to exit, possibly +# writing to the history file, before we start the new shell. Could +# write to a different history file each time which would avoid this. +sleep 1 + export PS1="$ " export HISTFILE=/tmp/history