-
Bug
-
Resolution: Done
-
Minor
-
RH124 - RHEL9.0-en-2-20220609
-
en-US (English)
URL: https://rol.redhat.com/rol/app/courses/rh124-9.0/pages/ch17s06
Reporter RHNID: carias@redhat.com
Section: 6 - Lab: Mount File Systems and Find Files
Language: en-US (English)|
Workaround: command="grep " + _comp_review5_file3 + " " + _comp_review5_txt3 + "; \ if [ $? -eq 0 ]; \
then wc -c $(grep " + _comp_review5_file3 + " " + _comp_review5_txt3 + ") | \
awk '
else exit 1; fi",
Description: The grading scrip waits for-ever to the wc -c command to end.
When the word is in the file, it works fine, but if I change it for anything else, it will be hung.
# Workaround
command="grep " + _comp_review5_file3 + " " + _comp_review5_txt3 + "; \
if [ $? -eq 0 ]; \
then wc -c $(grep " + _comp_review5_file3 + " " + _comp_review5_txt3 + ") | \
awk '{ print $1}
'; \
else exit 1; fi",