OS2021_Project1.Shell
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
杨浩然 b302331571 删除 'lab_report/test_case_img/vi_bg.png' pirms 3 gadiem
.vscode test mytop 删除 pirms 3 gadiem
lab_report 删除 'lab_report/test_case_img/vi_bg.png' 删除 pirms 3 gadiem
README.md amend README pirms 3 gadiem
yeeshell.c FINAL final version pirms 3 gadiem
yeeshell.h test mytop pirms 3 gadiem

README.md

OS2021_Project1.Shell

yeeshell.c

main function and function definition

yeeshell.h

function declaration and macro definition

1. Deployment

Pull from my shuishan git.

git clone root@gitea.shuishan.net.cn:10195501441/OS2021_Project1.Shell.git

In the MINIX3 environment, use clang to compile the program.

clang yeeshell.c -o yeeshell

Run yeeshell.

./yeeshell

2. Test Case

​ (1) cd /your/path

cd

​ (2) ls -a -l

ls

​ (3) ls -a -l > result.txt

redirect_out

​ (4) vi result.txt

vi

​ (5) grep a < result.txt

redirect_in

​ (6) ls -a -l | grep a

pipe

​ (7) vi result.txt &

​ This command can not be executed in the MINIX3 environment. It prints the following error information.

vi_bg

​ (8) mytop

mytop

​ (9) history n

history

​ (10) exit

exit