bashsetenv

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?


Solution

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

    export MYPATH=/path/to/something