# determine if var is set in Bourne-based shells case ${var+1} in 1) echo var set ;; *) echo var not set ;; esac -- Glenn Fowler (201)-582-2195 AT&T Bell Laboratories, Murray Hill, NJ uucp: {att,decvax,ucbvax}!ulysses!gsf internet: gsf at ulysses.att.com