mikeizbicki / ucr-cs100

open source software construction course
Other
485 stars 407 forks source link

hw1-ls #315

Closed gbrlrz017 closed 9 years ago

gbrlrz017 commented 9 years ago

For hw1, should commands like ls -Rla ./src already be "mostly" be working with our current rshell program?

I know you'll likely go over this in class today, but where do the readdir and stat syscalls come in to play?

Thanks!

hgarc014 commented 9 years ago

I think your question is: Doesn't our rshell already handle ls??

Yes, it does. The difference is that we are actually implementing part of ls in this assignment. In the last assignment we used execvp which basically used the ls command already defined on your machine.

If you look at how the instructors are going to grade this assignment they run your ls file and not your rshell file. Which most likely means, you don't have to have rshell working correctly for this assignment. However, I could be mistaken.

gbrlrz017 commented 9 years ago

Makes sense. Thanks!