[Discuss] awk linux and ENVIRON

Alan W. Irwin irwin at beluga.phys.uvic.ca
Fri Jun 23 11:02:57 PDT 2006


On 2006-06-23 10:52-0700 Alan W. Irwin wrote:

> awk "END{for(env in ENVIRON) print env, " = ", ENVIRON[env]}" </dev/null 
> |less

UGH.  :(

As soon as I saw that stupidity posted for all to see, I understood
what the (nested soft quote) problem was.

awk 'END{for(env in ENVIRON) print env, " = ", ENVIRON[env]}' \
</dev/null |less

now works great as a test that all is well with ENVIRON on debian stable.

Peter, does that script also work for your awk platform?
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the Yorick front-end to PLplot (yplot.sf.net); the
Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________


More information about the Discuss mailing list