Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a bash equivalent of setenv

Tags:

bash

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?

like image 862
usernumber Avatar asked Sep 20 '25 03:09

usernumber


1 Answers

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

export MYPATH=/path/to/something
like image 106
oguz ismail Avatar answered Sep 22 '25 22:09

oguz ismail