Lowell Gilbert wrote:
Fbsd8 <fb...@a1poweruser.com> writes:

I'm reading a script and i see a lot of exports.

Is there some command to display the exported environment?

The env command does not show them. Only see things made by setenv command.

You're not clear on which shell the script is using. The subject line implies /bin/sh, but that doesn't have a setenv command. I don't think there's a direct way to show exported variables in /bin/sh, but starting an inferior shell and looking at the environment there should do it.



This is what I am looking at in a sh script

echo export jail_${jailname}_hostname=\"${jailname}\"
puts it into the env
and this brings it back out
eval jailname=\"\$jail_${jailname}_hostname\"

Question is how can I display from the console command
line what has been exported?

env issued on the console command line does not show
any thing named jail.



_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to