Alister Waller wrote:
> 
> Hi,
> 
> I want to create aun Uppercase EXIT that calls exit.

Are you trying to do something like....

--

#!/bin/sh

EXIT ()
{
   # remove temp files etc

   ...

   # Tell user why we are bailing
   echo Error:$1 
   exit
}

if [ some silly error condition ]
then
  EXIT "You've fsck'd it up"
fi

# do more stuff

if [ another silly error condition ]
then
  EXIT "Now you've really fsck'd it up!"
fi

etc...

---
???

rgds

Pete


-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug

Reply via email to