On Fri, 4 Jan 2002, Paul Rimmer wrote: [...]
> #Test Line follows > PATH=/usr/local/sbin:/usr/local/bin:/sbin:/usr/sbin:/usr/bin > > main () { > > prog=`basename $0` > <SNIP> > > The mailing no longer occurs. Remove it and I get the emails again but with > no $HOSTNAME. Just so I know, what is the relationship between PATH and > environment variables? How does adding the above path provide visibility to > $HOSTNAME? By providing visibility to programs, including the "hostname" command. If the PATH string doesn't point to the location of the program (like /bin), then constructs like $(hostname) and `hostname` won't work... they will spit out errors to stderr and output nothing to stdout... leaving an empty string as a result. --------------------------------------------------------------------------- Jeff Newmiller The ..... ..... Go Live... DCN:<[EMAIL PROTECTED]> Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/Batteries O.O#. #.O#. with /Software/Embedded Controllers) .OO#. .OO#. rocks...2k --------------------------------------------------------------------------- _______________________________________________ Leaf-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user