#!/bin/sh if retval then # exit status is zero echo "true" else # exit status is NOT zero echo "false" fi