[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Checkout after a change
From: |
Xapp |
Subject: |
Re: Checkout after a change |
Date: |
10 Mar 2005 06:15:05 -0800 |
User-agent: |
G2/0.2 |
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
RE: Checkout after a change, Jim.Hyslop, 2005/03/10