Bourne Shell: Variable defined?

Maarten Litmaath maart at cs.vu.nl
Wed Mar 22 15:34:25 AEST 1989


rostamia at umbc3.UMBC.EDU (Rouben Rostamian) writes:
\... how can I tell, in Bourne Shell, whether the variable "foo" exits.

[ ${foo+RTFM} ]
-- 
 Modeless editors and strong typing:   |Maarten Litmaath @ VU Amsterdam:
   both for people with weak memories. |maart at cs.vu.nl, mcvax!botter!maart



More information about the Comp.unix.questions mailing list