Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

setenv 'command not found'

1,655 views
Skip to first unread message

ozzy_mo

unread,
Nov 26, 2001, 7:53:21 AM11/26/01
to
Hello
I've recently installed, well few months ago installed Redhat Linux 7.0
on my PC.
I'm trying to install some software which requires the command line:

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.

Stephen Rank

unread,
Nov 26, 2001, 8:08:59 AM11/26/01
to
ozzy_mo <ozz...@hotmail.com> writes:

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

Jim Howes

unread,
Nov 26, 2001, 9:15:13 AM11/26/01
to uk.comp.os.linux
ozzy_mo wrote:
>
> Hello
> I've recently installed, well few months ago installed Redhat Linux 7.0
> on my PC.
> I'm trying to install some software which requires the command line:
>
> setenv -t ..............
> of which I get the response
> bash: setenv 'command not found'

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)

spi...@freenet.co.uk

unread,
Dec 5, 2001, 9:23:28 AM12/5/01
to

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.

0 new messages