Closed Hadrien-lcrx closed 6 years ago
Another student reached out about this issue: lars.pettersson@biol.lu.se, #66366 Cc @bakera81
Yup - the problem is that we can't run nano
ourselves in the solution
block, because that's what the back end executes when testing the SCTs, and if we launch an editor (or less
, or man
, or anything else that requires interactivity), the automated back-end tests hang. I've added comments to all of the solutions where we do this in https://github.com/datacamp/courses-intro-to-unix-shell/pull/101, and @martijnsublime and @ncarchedi discussed it last week. There's no easy fix :-(
See #93.
Closing as a duplicate of #93.
@gvwilson Thank you for the explanation. Is this also the reason why the solution for the second quiz won't pass the grader, or should I create an issue about this?
Yup, same issue :-(
In How can I re-use pipes?, the instructions for the first quiz state: "Use Nano to edit the shell script teeth.sh and replace the ____ placeholders so that this script prints a count of the number of times each tooth name appears in the seasonal data."
The solution is
cp /solutions/teeth.sh .
I'm not an expert in shell, but this command is simply copying
teeth.sh
to the.
directory, it doesn't seem like there's any editing involved.Screenshot
Solution
Either clarify the instructions, or update the SCT to change the solution.
Cf manuel.nolte@gmx.de, #61273 Cc @bakera81