Manual

User Manual:

Open the PDF directly: View PDF PDF.
Page Count: 3

DownloadManual
Open PDF In BrowserView PDF
Cover Page
Implant:
Basic Requirements:
cd, (support path, ~ and white space)
I/O redirections (w/ append),
single pipe
Extra Credit:
comments (#) —1 pt.
multiple-commands (;) — 1 pt.
exit (exit, exit number) — 1 pt.
single quote (\’) — 2 pts.
multiple pipes — 3 pts.
overall — 8 pts.

1 of 3

Manual Page
Documents:
1.Didn’t find any bugs. :)
2.I compare my nsh with /bin/sh when running my test_script and the
output is the same, except the current running process when I run ps
aux.
3. In my test_script, first I printed the section that I am currently testing
first.
Then for each commend, I printed the command/description first, then
executed them. So it will be easier to read the output of my test_script.
(there are new lines in between each commands and sections.)
Notes:
1. I redirect my output result of my test_script to different directory
and delete the testing directory —dir, so when I ls in sh and nsh
will be the same. Or the second one I run will print the previous
one’s output result.
2. /bin/sh test_script > ../sh_res
and
nsh test_script > ../nsh_res
needs to run at the same directory to be able to have the same result,
when I am testing, I put cd /home/lizhenl/cs146/hw6 in the end of my
script, so it can guarantee the ls will give same result. But due to I
don’t know the hierarchy of the testing environment, so i commented
the command out. So when running my test_script please make sure
they run at the same directory.

2 of 3

How to run the shell:

make clean (optional)
make
nsh
?enter commands here (support ;)
?Ctrl +D to terminate
/bin/sh test_script > ../sh_res
Please cd back to the original directory, because right
now you will be at HOME directory
nsh test_script > ../nsh_res
diff ../sh_res ../nsh_res > diff_res
cat diff_res
Note: there should some differences, like the current
running process, the folder’s creation time.

3 of 3



Source Exif Data:
File Type                       : PDF
File Type Extension             : pdf
MIME Type                       : application/pdf
PDF Version                     : 1.3
Linearized                      : No
Page Count                      : 3
Title                           : manual.pages
Producer                        : Mac OS X 10.13.4 Quartz PDFContext
Creator                         : Pages
Create Date                     : 2018:06:08 23:39:51Z
Modify Date                     : 2018:06:08 23:39:51Z
EXIF Metadata provided by EXIF.tools

Navigation menu