datacamp-content / courses-introduction-to-shell

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

Uppercase answers are accepted as correct #114

Closed Hadrien-lcrx closed 6 years ago

Hadrien-lcrx commented 6 years ago

Uppercase commands pass the grader. I'm not sure whether this should be expected behavior or not, and whether this is good practice or not. For example, in How can I store a command's output in a file?, the correct answer is:

tail -n 5 seasonal/winter.csv > last.csv

but the following answer will pass the grader as well:

tail -N 5 seasonal/winter.csv > last.csv

Suggestion

Add an uppercase check if uppercases shouldn't be accepted, or inform the students in the learning material that uppercase / lowercase doesn't have an impact, and what the preferred method would be.

Screenshot

image

Cf gajdipajti@gmail.com, #85161 Cc @bakera81

gvwilson commented 6 years ago

Unable to reproduce.

Hadrien-lcrx commented 6 years ago

@gvwilson I just tried and had the same result as described in the original issue: screen shot 2018-07-04 at 18 23 57

The way I did it is open the exercise and paste this command directly in the terminal: tail -N 5 seasonal/winter.csv > last.csv