It may not be possible to use the bash history commands in a script. Check this out: http://www.tldp.org/LDP/abs/html/histcommands.html
I tested on the command line: ------------- $ cat > tmp.sh #!/bin/bash ls -l tomcat ^tomcat^blah $ chmod +x tmp.sh $ ./tmp.sh ls: tomcat: No such file or directory ./tmp.sh: ^tomcat^blah: command not found $ ls -l tomcat ls: tomcat: No such file or directory $ ^tomcat^blah ls -l blah ls: blah: No such file or directory ------------- Cheers, --Xapp _______________________________________________ Info-cvs mailing list Info-cvs@gnu.org http://lists.gnu.org/mailman/listinfo/info-cvs