making shellvariables public to child processes

Hi,

I'm looking for a possibility to make variables of the shell public to child processes.

Usually I would try

set -a

but an error message appears:
./decrypt.pgm: -a^M: bad option(s)

where decrypt.pgm is the name of the shell script.

Any help welcome!

Cheers Martin

^M causes the error message, did you copy this file from a microsoft platform?

See thread for a sollution
:http://www.unix.com/showthread.php?...hlight=linefeed

You're right! I used an freeware editor, which caused this problem. I fixed it with vi, but the export still doesn't work.

I can see the vars in the shell script, but as soon a I export the vars an start the perl script, I the vars in are empty.

I now use export 'cause I need all vars of the shell environment.

export SCRIPT_PATH

Any help welcome!

Cheers Martin

PS: Sorry, but your link didn't work.