if $GROUPING; then unset i while read -d $'\0' files; do grouping[i++]="$files" done < <(find "$WORK_DIR/" -name group\* -print0) check_complience group fi # Running the program I get: todisc: line 2619: syntax error near unexpected token `<' todisc: line 2619: ` done < <(find /work/svn/tovid/src/todisc-work/ -name group\* -print0)'