On Thu, Oct 1, 2009 at 12:57 PM, Tzafrir Cohen <[email protected]>wrote:
> > 3. You still need to export the variables to make them available in the > environment of the shell script: > > export $EXPORTED_VARS > > Well, not necessarily. At least in bash (I didn''t check /bin/sh), you can use 'set -a' to automatically mark variables and functions which are modified or created for export to the environment of subsequent commands. (so knowing the variables ahead is not a must) so: #!/bin/bash set -a . config.env exec ./script.pl "$@"
_______________________________________________ Linux-il mailing list [email protected] http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
