On Thursday 21 November 2002 10:53 am, Andre Poenitz wrote: > On Thu, Nov 21, 2002 at 10:57:00AM +0000, Angus Leeming wrote: > > Which is "better"? > > (cd ${DIRNAME}; ${FDESIGN} -convert ${FDFILE}) > > or > > (cd ${DIRNAME} && ${FDESIGN} -convert ${FDFILE}) > > > > if [ $? -ne 0 ]; then > > echo "\"${FDESIGN} -convert ${FDFILE}\" failed. Please investigate." > > exit 1 > > fi > > > > I'm not used to the "&&" stuff. can someone explain to me just what it > > does? > > The same as in C/C++: Run the first command, if that succeeded the second, > if that succeeded return success and failure otherwise.
Thanks, André. A