Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ananyaarun/c-shell
A clone of the bash shell implemented in C with all standard commands along with features like piping , redirection and process handling.
https://github.com/ananyaarun/c-shell
Last synced: 17 days ago
JSON representation
A clone of the bash shell implemented in C with all standard commands along with features like piping , redirection and process handling.
- Host: GitHub
- URL: https://github.com/ananyaarun/c-shell
- Owner: ananyaarun
- Created: 2019-09-24T17:08:11.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-12-04T11:23:31.000Z (about 5 years ago)
- Last Synced: 2024-11-09T09:53:14.317Z (2 months ago)
- Language: C
- Homepage:
- Size: 45.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Changelog: history.c
Awesome Lists containing this project
README
# C- Shell
## Assignment 3 By 20171019## Usage
- make
- ./shell## Features
- shell prompt
- cd , echo, pwd commands
- ls command with flags -l -a -la -al
- background and foreground process
- pinfo command
- history n command
- input output redirection
- piping
- piping with redirection
- jobs handling (fg,bg,overkill,kjobs etc)
- ctrl z and ctrl c signal handling
- setenv and unsetenv## Files
### background.c
- function to maintain an array of newly added background process### commands.c
- implementation of cd, pwd and echo command### environment.c
- implementation of setenv and unsetenv### history.c
- implementation of history and history n command### job.c
- implementation of jobs, kjobs, bg , fg and overkill commands### ls.c
- implementation of the ls command with its various flags### main.c
- main shell file that in a while loop calls the prompt, gets input from user and checks for finished background process### parse.c
- parses the input based on tokenization, piping and redirection (;) and calls functions for the respective commands accordingly after parsing### pinfo.c
- implementation of the pinfo and pinfo pid command