-
Notifications
You must be signed in to change notification settings - Fork 339
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated README for my recent changes.
- Loading branch information
Stephen Brennan
committed
Jan 16, 2015
1 parent
65f2c38
commit 9f2b98a
Showing
1 changed file
with
9 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,12 @@ | ||
LSH | ||
=== | ||
|
||
LSH is my little attempt at a *real* shell in C. It's called LSH because it's | ||
supposed to be the Libstephen SHell. That's because I hope that if this shell | ||
becomes anything, it could become a part of Libstephen as a shell library. It | ||
would have a simple shell syntax, maybe optional globbing, and it would be | ||
simple to plug any set of commands into it. That way, it could be used for | ||
quick interfaces by defining simple commands. | ||
|
||
But right now, it's just a simple shell to demonstrate that I know how a shell | ||
works. That is, read, parse, fork, exec, and wait. So I think it's pretty | ||
cool. Here are the limitations: | ||
|
||
* One line commands. | ||
* Only whitespace-delimited, no quoting of arguments. | ||
* No built-ins (e.g. cd, pwd, etc.). | ||
|
||
LSH is a simple implementation of a shell in C. It demonstrates the basics of | ||
how a shell works. That is: read, parse, fork, exec, and wait. So I think it's | ||
pretty cool. Since it's a simple implementation, it has some limitations. | ||
|
||
* Commands must be on a single line. | ||
* Arguments must be separated by whitespace. | ||
* No quoting arguments or escaping whitespace. | ||
* No piping or redirection. | ||
* Only builtins are: `cd`, `help`, `exit`. |