datacamp-content / courses-introduction-to-shell

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

Second solution crashes the console | Ex 5.5 #133

Closed Hadrien-lcrx closed 6 years ago

Hadrien-lcrx commented 6 years ago

On How can I pass filenames to scripts?, when entering the solution for quiz 2 (cp /solutions/count-records.sh . bash count-records.sh seasonal/*.csv > num-records.out), the console crashes.

Screenshot

Error message

image

Crash

image

Cf nhl3@pitt.edu, 98170 Cc @Robert-cabral

gvwilson commented 6 years ago

Anything that crashes the console should be filed in https://github.com/datacamp/learn-bugs.

Hadrien-lcrx commented 6 years ago

@gvwilson I spoke with LE, this is actually just a break line missing in the second hint. It should only read:

bash count-records.sh seasonal/*.csv > num-records.out

Using cp /solutions/count-records.sh . bash count-records.sh seasonal/*.csv > num-records.out as written on the hints will crash the console, and cp /solutions/count-records.sh . has been entered in the previous quiz, so it's not necessary in Quiz 2. image