#!/usr/bin/env etsh : : etsh - " Force sh(1), csh(1), and other shells to exit w/ error! " <'' ;;; : : " @(#)$Id: f5e521538f6444c1f4f14a5ae0c71eea70f5f1ab $ " : : " 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 $# != 0 -a $# != 1 if { exit } pusage $0 '"[name]"' if $# = 0 if { exit } env env ^ sed -n 's|^'$1'=||p' ^ wc -c ^ tr -d ' \t' ^ grep '^0$' >/dev/null if $? = 0 if { exit } false env ^ sed -n 's|^'$1'=||p'