Which of the following is not a valid command for variable declaration?
export ENV_VAR=1
newvar -x ENV_VAR=1
typeset -x ENV_VAR=1
declare -x ENV_VAR=1
Explanation & Hint:
The command “newvar -x ENV_VAR=1” is not a valid command for variable declaration. The correct command for variable declaration and exporting it is the “export ENV_VAR=1” command. The other options:
|