This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Bill, >Date: Thu, 17 Jul 1997 12:09:57 -0400 >From: Bill Hudson <address@hidden> >Organization: Pennsylvania State University/Applied Research Laboratory >To: Steve Emmerson <address@hidden> >Subject: Re: 970616: building netCDF on an HP-UX <something> >Keywords: 199707151311.HAA19835 In the above message, you wrote: > I apparently am working with the "sh" Bourne shell since I have the "$" on > my terminal and I get SHELL=/bin/sh as one of the outputs of the "set" or > "env" commands. I can not locate any instruction FOO to be set to bar, > (FOObar). I looked under sh, env, environ, profile, exec, an HP-UX > reference, various HP Visual Environment manuals, HP C++ manuals and a Waite > group UNIX Primer Plus Second Edition. Unfortunately the UNIX Primer Plus is > written about BSD Unix vs. Bourne. > > Any suggestions on how I should proceed? You should be able to access the manual page for the sh(1) shell via the following command: man sh From the manual page, you should learn about environment variables. Try executing the following commands: FOO=bar sh -c 'echo no export: $FOO' export FOO sh -c 'echo with export: $FOO' What is the output? -------- Steve Emmerson <http://www.unidata.ucar.edu>