Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error in solution in loops section #546

Closed
maneesha opened this issue Apr 11, 2017 · 2 comments
Closed

error in solution in loops section #546

maneesha opened this issue Apr 11, 2017 · 2 comments

Comments

@maneesha
Copy link
Contributor

maneesha commented Apr 11, 2017

Submitted via email by a self paced user:

I was recommended your site by a colleague in computer science, I am a scientist who wants to learn R. I just completed the unix shell (as a starting point) and it was really helpful - thank you guys so much!

However, I spotted a mistake (I tested it to make sure it was a mistake) in one of your questions in the loops section:

http://swcarpentry.github.io/shell-novice/05-loop/

Solution

5 is the correct answer. * matches zero or more characters, so a file name with zero or more
characters before a letter c and zero or more characters after the letter c will be matched.

Should be

Solution

4 is the correct answer. * matches zero or more characters, so a file name with zero or more
characters before a letter c and zero or more characters after the letter c will be matched.

Therefore filenames beginning with c, ending with c or with a c in the middle are all matched, therefore cubane and octane are both matched so answer 4 is correct, not answer 5.

@shwina
Copy link

shwina commented Apr 13, 2017

@stragu
Copy link
Contributor

stragu commented Oct 24, 2017

Could someone close this resolved issue? I just checked and yes, it was corrected in the material.

@shwina shwina closed this as completed Oct 24, 2017
fmichonneau pushed a commit to fmichonneau/shell-novice that referenced this issue Sep 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants