https://github.com/maneeshwije/mash
maneesh's shell
https://github.com/maneeshwije/mash
c shell
Last synced: about 2 months ago
JSON representation
maneesh's shell
- Host: GitHub
- URL: https://github.com/maneeshwije/mash
- Owner: ManeeshWije
- Created: 2022-12-13T03:34:46.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-11-10T01:29:51.000Z (over 1 year ago)
- Last Synced: 2025-02-12T22:51:21.611Z (over 1 year ago)
- Topics: c, shell
- Language: C
- Homepage:
- Size: 98.6 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mash (maneesh's shell)
- A **very** limited and non-compliant subset of Bash that works on Linux, MacOS, and yes, Windows
# Building & Running
- Run `make -f Makefile.[Linux|Darwin]`
- On Windows, run `nmake -f Makefile.Windows`
- Run `./mash`
- Can add flags such as `-v` for verbose mode
# Implements
- Process Creation (Running sub-programs) (ls -la)
- Built-in Shell programs (cd, exit)
- Piping (ls -la | more)
- Variable Substitution (var=hello) (echo ${var})
- Background Processes (sleep 5 &)
- File Redirection (ls -la > files.txt)
- Filename Globbing on UNIX (ls \*.c)