functions: Add a sleep before changing command history.
authorRichard Jones <rjones@redhat.com>
Fri, 5 Mar 2010 14:11:58 +0000 (14:11 +0000)
committerRichard Jones <rjones@redhat.com>
Fri, 5 Mar 2010 14:11:58 +0000 (14:11 +0000)
examples/simple/functions

index c1e12a3..cb34080 100644 (file)
@@ -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