作者Lwms (大老板)
看板b92902xxx
标题Re: [SP2005] Assignment 3 范例档案更正
时间Sun May 22 04:02:18 2005
※ 引述《NeilPeng (闲闲没事也会烦)》之铭言:
: 同学你好,
: Assignment 3 的范例输出二 (sample_output_2) 有错误,目前已
: 经於网站上更正。
: 错误原因主要在於第二次执行 status 时,sample_output_2 少了
: 一次 foreground process exit status 的输出,background
: process exit status 输出的位置也不正确。
: 谢谢 B92902106 庄典融同学的指正。
: 造成各位同学不便之处还请见谅。
: SP2005 课程助教
: 彭念劬
助教您好 我有几个问题想要请教
1. output format 的格式是依照
Minishell2005.pdf 中的 Process %6d ...
或是 sample output 中的 Process ID:
2. 在 Minishell2005.pdf 中第 3 页
Command Execution 第二段第 2 行
If a command is terminated by a signal, a message indicating
which signal terminated the process will be printed.
以及第 3 行
When a background process is started your shell will print out
its process id;
就我的理解 被 IO redirection 的应该是 child process
还是说 IO redirection 时 连 shell 的 也被改变了
不然的话 感觉在 sample output 中应该不会出现上面两段所要印出来的
3. status
The status command prints out the exit status of the previous
command.
previous command 是指前一个所下的 command
还是前一个结束的 command
又, background process 也要算进去吗?
最後
缴交的档案到底是 A3.tar (from web-site) 还是 minishell.tgz (from document)
--
女人要麽是奴隶,要麽是暴君,但绝非男人的伴侣。
L. V. Sacher Masoch
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.112.30.55
※ 编辑: Lwms 来自: 140.112.30.55 (05/22 04:40)
1F:推 yabt:不急 等到deadline过了以後 59.121.215.62 05/22
2F:→ yabt:一切就会明朗化了 XD 59.121.215.62 05/22
3F:推 JeffChen:可参考作业网站^^ 59.112.229.63 05/22