>>>>> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes:

Angus> Why do you find this: if (cd ${DIRNAME} && ${FDESIGN} -convert
Angus> ${FDFILE}); then : ; else ... fi

Angus> superior to this: (cd ${DIRNAME} && ${FDESIGN} -convert
Angus> ${FDFILE}) if [ $? -ne 0 ]; then ... fi

Angus> It seems to me that $? is part of the language and that an
Angus> edict not to use it is artificial. Are you saying it's not
Angus> safe, or just that you find it ugly?

I find it ugly personally. The argument in the page is that you spawn
one more command ([ is really test) in order to do something which is
useless. 

I was also wanting to show off the latest www page I added to my
bookmarks.

Of course you can do
  (cd ${DIRNAME} && ${FDESIGN} -convert ${FDFILE}) || echo "\"${FDESIGN} -convert 
${FDFILE}\" failed. Please investigate." && exit 1 
which is funnier, and can even be readable with a bit of splitting.

JMarc

Reply via email to