datacamp-content / courses-introduction-to-shell

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

Update SCT | Chapter 4 Exercise 5 #100

Closed Hadrien-lcrx closed 6 years ago

Hadrien-lcrx commented 6 years ago

In How can I repeat a command once for each file?, not adding a space after the first ; will prevent the answer from passing the grader. Is this normal shell behavior or should the answer be accepted?

Rejected code

for filename in people/*;do echo $filename; done

Exercise solution

for filename in people/*; do echo $filename; done

Screenshot

image

image

Cf ali.abbasov1@gmail.com, #64985 Cc @bakera81

gvwilson commented 6 years ago

Good catch - spaces around the ; are optional. This should be fixed by 60e4dac.