From 03c4d8238c544ee193fdb26c7acc2bbdf89e0824 Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Fri, 5 Mar 2010 14:11:58 +0000 Subject: [PATCH] functions: Add a sleep before changing command history. --- examples/simple/functions | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 1.8.3.1