#!/usr/bin/env osh : : osh - " Force sh(1), csh(1), and other shells to exit w/ error! " <'' ;;; : : " @(#)$Id: ea12525da8a73ac2d1ffed3b5893a04f62095548 $ " : : " The author of this file, J.A. Neitzel , " : " hereby grants it to the public domain. " : : : " Print the environment like the BSD printenv(1) utility. " : : " usage: printenv [name] " : : " Check for correct usage. " : >>$0'' <'' ; : >>$1'' <'' ; killer $0 printenv if $n != 0 -a $n != 1 if { exit } pusage $0 '"[name]"' if $n = 0 if { exit } env env ^ sed -n 's|^'$1'=||p' ^ wc -c ^ tr -d ' \t' ^ grep '^0$' >/dev/null if $s = 0 if { exit } false env ^ sed -n 's|^'$1'=||p'