Executing a shell script

 LD_LIBRARY_PATH=~/tme-0.8/bus/multibus:~/tme-0.8/bus/sbus:~/tme-0.8/dist/softfloat/softfloat/bits32:~/tme-0.8/dist/softfloat/softfloat/bits64:~/tme-0.8/generic:~/tme-0.8/host/bsd:~/tme-0.8/host/gtk:~/tme-0.8/host/posix:~/tme-0.8/ic:~/tme-0.8/ic/ieee754:~/tme-0.8/ic/m68k:~/tme-0.8/ic/sparc:~/tme-0.8/ic/stp22xx:~/tme-0.8/libltdl:~/tme-0.8/libtme:~/tme-0.8/libtme/host/x86:~/tme-0.8/machine/sun:~/tme-0.8/machine/sun2:~/tme-0.8/machine/sun3:~/tme-0.8/machine/sun4:~/tme-0.8/scsi:~/tme-0.8/serial:~/tme-0.8/tmesh 
export LD_LIBRARY_PATH 

Executed by ./123.sh
But when I make a command => echo LD_LIBRARY_PATH or export the LD_LIBRARY_PATH variable is still unset. Any ideas why? Thanks Jack

Yup.

  1. you have to source the script
    or
  2. you have enter that from the command line

Environment variables created in a child process (running a script == child process)
are never visible to the parent process (your command line).

source means

.  myscript.sh

Note the leading "dot" separated by a space
or in bash

source myscript.sh