Date: Mon, 28 Jan 2013 19:14:05 -0500 From: Lowell Gilbert <freebsd-questions-local@be-well.ilk.org> To: Fbsd8 <fbsd8@a1poweruser.com> Cc: FreeBSD questions <questions@freebsd.org> Subject: Re: sh & export Message-ID: <444ni0dewi.fsf@lowell-desk.lan> In-Reply-To: <51070FD6.8070808@a1poweruser.com> (fbsd8@a1poweruser.com's message of "Mon, 28 Jan 2013 18:55:02 -0500") References: <51070FD6.8070808@a1poweruser.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Fbsd8 <fbsd8@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?444ni0dewi.fsf>