In tcsh
, I have the following simple script working:
#!/bin/tcsh
setenv X_ROOT /some/specified/path
setenv XDB ${X_ROOT}/db
setenv PATH ${X_ROOT}/bin:${PATH}
xrun -d xdb1 -i $1 > $2
My question is, what is the equivalent to the tcsh setenv
function in bash
? Is there a direct analog? The environment variables are for locating the executable.
UPDATE: Thanks everyone for your help! I'd been trying to figure this out for quite a while.