exec runs a new program in the same process (PID doesn't change), i.e. it replaces the running program with another one. In this particular case, the "new" program is the old one, your script, which is available in $0.
The effect of this seemingly senseless exercise is that the runtime linker this time reads the updated LD_LIBRARY_PATH (which it only reads once on exec of a binary).
In reply to Re^5: Env Variables
by almut
in thread Env Variables
by LinuxUser2008
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |