-
Bug
-
Resolution: Duplicate
-
Minor
-
RH134 - RHEL9.0-en-3-20220914
-
12
-
ROLE
-
en-US (English)
URL: https://role.rhu.redhat.com/rol-rhu/app/courses/rh199-9.0/pages/ch17s02
Reporter RHNID: yuvaraj-rhls
Section: comprehensive-review-review1-review - Lab: Fix Boot Issues and Maintain Servers
Language: en-US (English)||||||||
Workaround:
Description: Description: Chapter 17, Lab 1, the task about the recurring job: the grading script incorrectly assumes that there will be exactly one exactly whitespace separating the fields. Meanwhile an admin can use more than one whitespace or (conventionally before the command field) one or more tab characters. Moreover, the current regular expression does not correctly escape * characters for the day of month and the month, which only works by accident because of the subsequent .* eating away everything until the whitespace before the path to the script. A more correct regex for grep -E in the grading script would look something like: 0[[:space:]]19-21[[:space:]]*[[:space:]]*[[:space:]].*[[:space:]]+/home/student/backup-home.sh