Introduction
Announcements

Schedule
Labs
Assignments
TA office hours

Tests, exam

Topic videos
Some course notes
Extra problems
Lecture recordings

Discussion board

Grades so far

Assignment one questions and answers

Here are some questions and answers about assignment one, and other notes. Suggestions for additions to this list are welcome (e.g. via e-mail).

Click on the highlighted text to expand an item. [EXPAND ALL]


Resources available: |+|
Q: I uploaded my file at 11:45 last night [June 6th] and it didn't work |+|
General notes: |+|
Q: Do we need to set the PATH variable? |+|
Q: What is "dash"? |+|
Don't use temporary files! |+|
Q: In rmlink and adv, do we need to check $# and output a usage message? |+|
rmlink: Note the advice to use "test -L" to test if it's a symlink. |+|
rmlink: Please "ls −l" the symlinks instead of "rm"ing them. |+|
dist: Note that the suggested cat "$@" is good for quite a lot of things. |+|
Q: When I write a 'while' loop which is part of a pipeline, variable assignments in the loop don't seem to stick. |+|
Avoid unproductive temporary variables, |+|
Q: Can we use the built-in arithmetic functions of bash? |+|
Q: Ok, now I'm worried. How do I know that I'm not using bash-specific extensions? |+|
Q: How can I make it that you can just type (for example) "rmlink file" instead of "sh rmlink file"? |+|