Je promenna definovana?

Martin `MJ' Mares mj na ucw.cz
Středa Květen 16 21:23:28 CEST 2007


> Aha, takže upřesňující otázka zní, jak se to zjistí v [t]csh. Tam mi to 
> pořád hlásí
> 
> DISPLAY: Undefined variable.

Vida, csh mne vůbec nenapadl :-)

Co třeba

	printenv VAR >/dev/null
	if ( $status == 0 ) echo Existuje

				Have a nice fortnight
-- 
Martin `MJ' Mares                          <mj na ucw.cz>   http://mj.ucw.cz/
Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth
The better the better, the better the bet.



Další informace o konferenci Linux