# brenns10/lsh

Simple shell implementation.  Tutorial here ->

Repository: https://github.com/brenns10/lsh
Canonical: https://ross.abutalabs.com/products/lsh
Homepage: http://brennan.io/2015/01/16/write-a-shell-in-c/
Language: C
License: Unlicense
License Family: permissive
Topics: tutorial, c, shell
Last push: 2022-08-02T06:53:23+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4254, "days_push": 1492, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1717, forks 538 (observed 2026-08-28T04:05:26.391324+00:00)

## What it is
LSH is a minimal Unix shell written in C, created as the companion code for a well-known tutorial on how shells work. It demonstrates the core read-parse-fork-exec-wait loop and is intentionally feature-limited for educational purposes.

## Use cases
- learn how a unix shell works internally
- understand fork exec and wait in c
- study a minimal shell implementation
- starting point for writing my own shell
- teach operating systems concepts with a small codebase

## When to choose
- you want to learn shell internals from readable, small C code
- you need a simple base to extend with your own shell features
- you are teaching or studying process creation in unix

## When to avoid
- you need a daily-driver shell with piping, redirection, or quoting
- you want a production-ready or feature-complete shell
- you expect active feature development or community contributions

## Facets
- artifact type: learning-resource
- maturity: maintenance
- function: interpreter, parser, developer-tools
- domain: operating-systems, tutorials, education
- platform: c, cli
- tags: shell, unix, fork-exec, tutorial-code, public-domain, command-line, linux, macos

## Member repositories
- brenns10/lsh (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:26.391324+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:34:12.597535+00:00, confidence not recorded.
  - readme: https://github.com/brenns10/lsh (fetched 2026-08-28T04:05:26.391324+00:00, sha 245eb82926a6)
  - homepage: http://brennan.io/2015/01/16/write-a-shell-in-c/ (fetched 2026-08-29T11:10:10.832527+00:00, sha 9fa46bfc6498)
- Data as of 2026-08-30T08:39:29.467469+00:00.
