sh & export
Lowell Gilbert
freebsd-questions-local at be-well.ilk.org
Tue Jan 29 00:14:19 UTC 2013
Fbsd8 <fbsd8 at 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.
More information about the freebsd-questions
mailing list