تفاصيل العمل

creating a simple UNIX-like command interpreter that works as same as Linux shell using C programming language

this project depends on various concepts in C programming language such as Syscalls, static variables, PID and PPID, creating processes and executing programs inside a big one, pointers, environment,

arguments, dynamic memory allocation

Excution steps:

implementing these tasks:

Display a prompt and wait for the user to type a command. A command line always ends with a new line

The prompt is displayed again each time a command has been executed

The command lines are simple, no semicolons, no pipes, no redirections or any other advanced features

If an executable cannot be found, print an error message and display the prompt again

Handle errors

You have to handle the “end of file” condition (Ctrl+D)

Handle command lines with arguments

Handle the PATH

Implement the exit built-in, that exits the shell

Implement the env built-in, that prints the current environment

Handle comments (#)

ملفات مرفقة

بطاقة العمل

اسم المستقل مصطفى أ.
عدد الإعجابات 0
عدد المشاهدات 8
تاريخ الإضافة
تاريخ الإنجاز