set, then command? 

Newsgroups: comp.unix.shell
>I came across the following usage:
>
>LD_LIBRARY_PATH=... soffice
>
>which set a vriable before running a program.
>
>Can you explain it a little bit? I.e., the syntax, where to use,
>where to find man...

It is documented in the man page for your (Bourne-like) shell. In the bash man page it is in the section "SIMPLE COMMAND EXPANSION", where the relevant sentences state:

If no  command  name  results,  the  variable  assignments
affect  the  current  shell  environment.   Otherwise, the
variables are added to the  environment  of  the  executed
command  and  do not affect the current shell environment.

Ken Pizzini

documented on: 2000.08.13 Sun 21:30:01