history question-- Bourne (and C) SHELL COMMENTS

Michael Coulter coulter at hplabsc.UUCP
Sat Aug 16 06:20:00 AEST 1986


To get the effect of "NOT function-result" in the Bourne shell you can:

	some_command
	if [ ! $? -eq 0 ]
	then
		...
	fi

$? is assigned the result of the last command.

-- Michael Coulter			...ucbvax!hplabs!coulter



More information about the Comp.unix.wizards mailing list