I know that, Shell variables are not available to the parent or child shells and Shell environments are available for child shells.
When I want to permanently add current directory to PATH I can do it in 2 ways:
[sinoosh@localhost ~]$ vi ~/.bash_profile
2-without export command
And then logout i see the same result as normal way
there is not different between "1"&"2" . can we say the
export command is useful for that time we do not want permanently add to environment variables?
What's happening here?