usernumber
usernumber

Reputation: 2185

Is there a bash equivalent of setenv

In bash, setenv returns "command not found...". I (think I) can replace setenv MYPATH /path/to/something/ by

MYPATH=/path/to/something/
export MYPATH

But is there a single command I can use in Fedora that will do the same thing as setenv?

Upvotes: 4

Views: 3589

Answers (1)

oguz ismail
oguz ismail

Reputation: 50795

You can set the value of a variable while exporting it.

export MYPATH=/path/to/something

Upvotes: 6

Related Questions