文件名称:shell
介绍说明--下载内容来自于网络,使用问题请自行百度
实现带参数的简单shell
1、除了系统调用execve,不允许使用其他的exec函数。输入应当允许带多个参数(一行内可以表示),不考虑通配符 (即“*”、“?”、“-”等等)的处理。
2、输入错误命令能提示出错并进入下一轮接收命令状态。
3、可以用Ctrl-C和Ctrl-\结束简单shell的运行。
4、程序运行正确,提示简洁明确。
-Parameters to achieve a simple shell 1, apart from the system call execve, not allowed to use other exec functions. Input should be allowed to take multiple parameters (one line can be expressed), without considering a wildcard (ie, "*" ," ?" ,"-" , etc.) processing. 2, typographical errors, the command will prompt an error and enter the next round of the state to receive the command. 3, you can use Ctrl-C and Ctrl-\ the end of a simple shell operation. 4, the program is running correctly, suggesting that clear and simple.
1、除了系统调用execve,不允许使用其他的exec函数。输入应当允许带多个参数(一行内可以表示),不考虑通配符 (即“*”、“?”、“-”等等)的处理。
2、输入错误命令能提示出错并进入下一轮接收命令状态。
3、可以用Ctrl-C和Ctrl-\结束简单shell的运行。
4、程序运行正确,提示简洁明确。
-Parameters to achieve a simple shell 1, apart from the system call execve, not allowed to use other exec functions. Input should be allowed to take multiple parameters (one line can be expressed), without considering a wildcard (ie, "*" ," ?" ,"-" , etc.) processing. 2, typographical errors, the command will prompt an error and enter the next round of the state to receive the command. 3, you can use Ctrl-C and Ctrl-\ the end of a simple shell operation. 4, the program is running correctly, suggesting that clear and simple.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
shell.c
apue.h
apue.h
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.