https://github.com/thegreyd/Shell
Toy implementation of csh-like command line shell
https://github.com/thegreyd/Shell
c cli shell unix
Last synced: over 1 year ago
JSON representation
Toy implementation of csh-like command line shell
- Host: GitHub
- URL: https://github.com/thegreyd/Shell
- Owner: thegreyd
- License: gpl-3.0
- Created: 2017-03-01T06:04:06.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-15T21:48:42.000Z (over 9 years ago)
- Last Synced: 2024-10-24T02:32:03.244Z (over 1 year ago)
- Topics: c, cli, shell, unix
- Language: C
- Homepage:
- Size: 154 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Ush micro shell
(ie, μ-shell), modeled after csh.
### Specification:
- [Manpage](ush_manpage.pdf), [Spec](spec.md)
### To run Ush:
- Clone repo, cd into the directory.
- from command line:
```
$ make
$ ./ush
```
### To run tests:
- dependency - csh
+ install csh : `sudo apt install csh`
- Run tests: `make test`
- For all successful tests- output will be something like this:
```
bash test.sh
running tests/test_builtins.txt
running tests/test_exec.txt
running tests/test_pipeserr.txt
running tests/test_pipes.txt
running tests/test_stderr.txt
running tests/test_stdinouterr.txt
running tests/test_stdin.txt
running tests/test_stdoutapp.txt
running tests/test_stdout.txt
```
### Extra
- add ush to path in bash
`export PATH=/home/user/dir/:$PATH`