On Thu, Mar 02, 2006 at 02:41:08PM +0800, LUK ShunTim wrote: > if [ -z "$AAA" ]; then > cat <<EOF >>outfile > EOF > fi Remove indentation before EOF or use <<" EOF".