https://github.com/ntk148v/kshell
Simple shell implementation in C#
https://github.com/ntk148v/kshell
csharp shell tutorial
Last synced: 3 months ago
JSON representation
Simple shell implementation in C#
- Host: GitHub
- URL: https://github.com/ntk148v/kshell
- Owner: ntk148v
- License: apache-2.0
- Created: 2023-08-20T05:22:07.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-09-11T09:54:33.000Z (over 2 years ago)
- Last Synced: 2025-01-01T22:12:04.672Z (about 1 year ago)
- Topics: csharp, shell, tutorial
- Language: C#
- Homepage: https://ntk148v.github.io/posts/writing-a-simple-shell-in-c-sharp/
- Size: 27.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# KShell - A simple shell in C#
## 1. Introduction
KShell is a simle implementation of a shell in C#. It demonstrates the basics of how a shell works. Since its purpose demonstration (not feature completeness or even fitness for causual use), it has many limitations, including:
- Tested only in Linux environment.
- Commands must be on a single line.
- Arguments must be separated by whitespace.
- No quoting arguments or escaping whitespace.
- No piping or redirection.
- Only built-ins are: `cd`, `help`, `exit`, `which`, `history`.
## 2. How to execute
## 3. Considered improvements
- Catch keyboard input: `Ctrl + q` - exit, `up/down`.
- Browse your input history with the up/down keys.
## 4. Contribution
Since this is my very first C# project (for education purpose), the source code isn't optimized. All contributions are welcome.
- If you find a bug, fire an issue and create a PR to solve it. Even if it's a typo fix, it is still welcomed.
- If you implement a new feature or you have an idea, create an issue.