Skip to content

Commit 7de98c2

Browse files
committed
Clarify the 2nd phase instructions.
1 parent f3bd62d commit 7de98c2

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

docs/class-assignments/labs-assignment-2018.txt

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ book "flex & bison", the first 30 pages should be all you need for this
4747
project. I believe you can find the book online.
4848

4949
You will probably need a linked list implementation. We suggest you use
50-
macros from <queue.h>, those are proven macros. See "man queue" for
51-
more information. STAIL_* macros should be all you need.
50+
macros from <queue.h>. See "man queue" for more information. STAIL_*
51+
macros should be all you need.
5252

5353
FYI, our implementation of the complete 1st phase is 550 lines long,
5454
including flex and bison source files, and using the usual C style from
@@ -291,10 +291,18 @@ you start your shell from.
291291
Phase 2
292292
-------
293293
- pipes
294-
- redirections (>, <, >>)
294+
295+
- redirections
296+
- "file >"
297+
- "file <"
298+
- ">> file"
299+
- no need to implement ">&N" etc.
300+
- whitespace is not significant (e.g. ">file", "> file" and
301+
"> file" are all syntactically correct and equivalent)
302+
295303
- background execution via &
296304

297-
Specific examples will be provided till the end of November but it must
305+
Specific examples will be provided by the end of November but it must
298306
work in the usual fashion. For example, this works in any normal
299307
Unix/LInux shell, i.e. the redirection does not have to be at the end:
300308

0 commit comments

Comments
 (0)