Bash : About the "export" command
Hi,
First I'm running Debian Testing and I want let know to other newbies that : Code:
$ man export To access few info about look at : Code:
$ man bash but it doesn't provide a lot :( That's why I'm asking here : What is the difference between : Code:
$ VARIABLE=<value> <my_command> Code:
$ export VARIABLE=<value> For example if I want to use some <command> needing an other version than the default lib-xxx version VARIABLE should be : Code:
LD_LIBRARY_PATH=<path_to_alternative_libs_rep> Or even, there is a better way to do so? Thanks for explanations. |
VARIABLE=val command
here VARIABLE is only set for that line, command will see it, otherwise not set. export VARIABLE means the variable will be available for all the child processes/commands |
@pan64
Thanks for answer Please, Where to get more detailed (but affordable for non-expert) instructions about the bash builtin commands |
|
Quote:
If you really want to say thanks just click on yes. |
I've only read the intro of the Bash Beginners Guide,
but I feel the need to quote and share this, because it is so true... Quote:
Step 1 = OS Install Step 2 = Starting every day Desktop use to be comfortable with GUI |
All times are GMT -5. The time now is 08:59 PM. |