- sh -c "exec $TAR_PART1 -f $TAPE_FILE $TAR_PART2 $TAR_PART3 \
- $BACKUP_FILES" 2>&1 | tee -a $LOGFILE
+ sh -c "exec ${TAR_PART1} -f ${TAPE_FILE} ${TAR_PART2} ${TAR_PART3} \
+ ${BACKUP_FILES}" 2>&1 | tee -a ${LOGFILE}
+ # This doesn't presently work, of course, because $? is set to the exit
+ # status of the last thing in the pipeline of the previous command,
+ # namely `tee'. We really want the exit status of the sh command
+ # running tar, but getting this seems to be nontrivial. --friedman