setenv -t ..............
of which I get the response
bash: setenv 'command not found'
I've searched my disk and this command isn't present, can any one steer
me in the right direction.
Thanks.
OZ.
Looks like a [t]csh-ism to me, while you're using bash. If you've got
`setenv foo bar', bash will understand `export foo=bar', though the
`-t' is a bit odd (`setenv -t foobar' will result in the variable `-t'
having the value `foobar', which is fine, but slightly weird).
HTH,
Stephen
--
1006779845
setenv is used in C-Shell's such as tcsh. Bash has 'export' like the
original bourne shell. For instance..
C-Shell
setenv FOO /usr/bin/bletch
Bash/sh
FOO=/usr/bin/bletch
export FOO
or, in Bash
export FOO=/usr/bin/bletch
Or, you could run something like tcsh.
If you want to change your default shell, use chsh (Change Shell)
setenv is a shell command... Just not a bash shell command.
It's common in csh derivatives like tcsh.
The bash equivalent is export...
setenv DISPLAY :0
would be
export DISPLAY=:0
for example.