-
Summary:
- This is a fully functional bash shell simulator written in C.
- The following basic commands are directly handled by the shell:
- "cd", "status", "exit"
- All the other bash commands are handled by dynamically forked child processes.
- Foreground mode can be toggled on & off by pressing Ctrl+Z. Once foreground mode is entered, all commands are handled as foreground commands.
- All background processes are cleared manually from the process table by the shell once completed.
- The program can be terminated only by entering "exit". All background processes will be terminated and cleared instantly from the process table upon termination.
-
Please compile the "smallsh.c" program into an executable file using the following command:
- gcc -std=c99 -o smallsh smallsh.c
-
Please run the executable file using the following command:
- ./smallsh
-
Notifications
You must be signed in to change notification settings - Fork 0
lishukie6588/C_shell
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published