datacamp-content / courses-introduction-to-shell

Introduction to Shell by Greg Wilson
Other
47 stars 47 forks source link

Instructions don't match solution | Chapter 5 Exercise 4 #97

Closed Hadrien-lcrx closed 6 years ago

Hadrien-lcrx commented 6 years ago

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

image

Solution

Either clarify the instructions, or update the SCT to change the solution.

Cf manuel.nolte@gmx.de, #61273 Cc @bakera81

Hadrien-lcrx commented 6 years ago

Another student reached out about this issue: lars.pettersson@biol.lu.se, #66366 Cc @bakera81

gvwilson commented 6 years ago

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.

gvwilson commented 6 years ago

Closing as a duplicate of #93.

Hadrien-lcrx commented 6 years ago

@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? image

gvwilson commented 6 years ago

Yup, same issue :-(