[ale] Bash scripts for idiots...
michael D. ivey
ivey at realminfo.com
Sat Nov 6 13:55:10 EST 1999
On Fri, Nov 05, 1999 at 10:14:31PM -0600, Benjamin Scherrey wrote:
> I appreciate the idea but I really want to do more than just that.
> Only, I need it to run within the current environment and make any
> changes persist within my session. An alias can't do it all. I can't
> believe this isn't a very simple basic thing to do (like a DOS batch
> file).
try a function. in your .bashrc:
mycd() {
cd /some/dir
do
something
done
echo "still in /some/dir"
}
--
-- michael d. ivey, lead engineer, applianceware (tm) ------------------
------ realm information technologies <http://realminfo.com> ----------
------------------------------------------------------------------------
"You can't invent a future with magic bullets or buzzwords." - R. Rodin
More information about the Ale
mailing list