[SLL] left and right justified text [fully justified]
Jeremy C. Reed
reed at reedmedia.net
Sat May 10 17:57:58 PDT 2008
> Thanks - I got it to work but not until I ran ran "export" on the env
> variable. Any idea why this was necessary?
Setting variables followed by simple commands puts them in the
environment and that variable is temporary for the duration of that
command.
Setting variables without following by simple command just sets in the
shell -- known to the shell but not set in environment. (When a new
command is ran by that shell it won't see it.)
Using "export" puts a variable in the user process environment available
for that new process.
So if you don't want to use export, then set the variable and run the par
in the same command.
More information about the linux-list
mailing list