Why do backticks, when used for saving command output, cause an EOF error?
I am looping through a list of clearcase files to see if the text "Merge <-" is not part of the output of ct describe . I have tried running a while loop on this list of clearcase files then appending it to another file if it meets my desired condition. Below is the exact logic I used: 16 FILTER_LIST=cut -f1 -d'@' branchmerge_versions.txt 17 touch temp.txt 18 echo $FILTER_LIST > temp.txt 19 20 while read t; do 21 isMerged=`cleartool describe t | grep -e "Merge <-"` 22 if [[ "x$isMerged" == "x" ]]; then 23 echo "$t" >> filesToMerge.txt 24 fi 25 done < temp.txt 26 Running bash -n on the script