由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - 帮帮忙,用C作一个SHELL
相关主题
Perl问题求助 (转载)怎么把UNIX下文件转成LINUX下的文件 (转载)
[转载] HOw to use Emacs as Xterm?Re: How to get the name of current executable in a library routine?
为什么我就是不会写Shell script?how to redirect error output under unix
how to get rid of the ^M in files?login shell and normal shell?
Help: convert // to /* */ in C code?为什么time命令无法重定向?
关于emacs一问。shell script help?
再次急问: *.tgz 文件怎么解?Help on get an integer from a date string
unix下编译fortran 的错误太多,看不到怎么办?Re: 怎么在UNIX下面放CD?
相关话题的讨论汇总
话题: command话题: shell话题: first话题: execute话题: implement
进入Unix版参与讨论
1 (共1页)
s*z
发帖数: 713
1
在UNIX下些一个C program,执行SHELL功能,也就是说能象SHELL一样
识别,执行COMMAND,具体如下:
First, implement the basic parts to print the prompt and
read the command line. In this first-cut version, just
print the
command that is to be executed instead of trying to
execute it. After you are able to determine the command
name,
complete the code to parse the command line and build
the argv array, again just printing the results to stdout.
Next, implement the command execute functionality.
This means you will i
c*****t
发帖数: 1879
2
For your own good, don't ask this kind of questions. If you
are really stuck at specific places, then we can help.

【在 s*z 的大作中提到】
: 在UNIX下些一个C program,执行SHELL功能,也就是说能象SHELL一样
: 识别,执行COMMAND,具体如下:
: First, implement the basic parts to print the prompt and
: read the command line. In this first-cut version, just
: print the
: command that is to be executed instead of trying to
: execute it. After you are able to determine the command
: name,
: complete the code to parse the command line and build
: the argv array, again just printing the results to stdout.

m*******m
发帖数: 182
3
Exactly, pal. You can't expect people to write code for
your
class/work just like that. The requirement looks like a
reasonable amount of work. Which exact part you find hard
to
do?

【在 c*****t 的大作中提到】
: For your own good, don't ask this kind of questions. If you
: are really stuck at specific places, then we can help.

m*****e
发帖数: 4193
4
Or send me a check of $10 and I will send him the code.

【在 m*******m 的大作中提到】
: Exactly, pal. You can't expect people to write code for
: your
: class/work just like that. The requirement looks like a
: reasonable amount of work. Which exact part you find hard
: to
: do?

t****n
发帖数: 1347
5
这么简单的东西还要人帮忙?

【在 s*z 的大作中提到】
: 在UNIX下些一个C program,执行SHELL功能,也就是说能象SHELL一样
: 识别,执行COMMAND,具体如下:
: First, implement the basic parts to print the prompt and
: read the command line. In this first-cut version, just
: print the
: command that is to be executed instead of trying to
: execute it. After you are able to determine the command
: name,
: complete the code to parse the command line and build
: the argv array, again just printing the results to stdout.

t****n
发帖数: 1347
6
OK就给你一个吧, 你有种把这CODE交上去也行:
1 (共1页)
进入Unix版参与讨论
相关主题
Re: 怎么在UNIX下面放CD?Help: convert // to /* */ in C code?
books about advanced UNIX command关于emacs一问。
How to implement sopen on unix?再次急问: *.tgz 文件怎么解?
在unix下怎么听CD亚unix下编译fortran 的错误太多,看不到怎么办?
Perl问题求助 (转载)怎么把UNIX下文件转成LINUX下的文件 (转载)
[转载] HOw to use Emacs as Xterm?Re: How to get the name of current executable in a library routine?
为什么我就是不会写Shell script?how to redirect error output under unix
how to get rid of the ^M in files?login shell and normal shell?
相关话题的讨论汇总
话题: command话题: shell话题: first话题: execute话题: implement