Skip to content
melogtmPublic

About

A Unix shell written in C: pipelines, glob expansion and builtins, built with CMake and tested in CI.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Trigger

CI

Overview

This project aims to create a clean, efficient shell.

Platforms

Trigger targets POSIX systems: Linux and macOS are built and tested in CI, and tagged releases ship trigger-linux-x86_64 and trigger-macos-arm64 binaries. Windows is not supported natively (the shell relies on fork, execvp, pipe and glob); use WSL, MSYS2 or Cygwin there.

Building

cmake -B cmake-build-debug -S .
cmake --build cmake-build-debug

Running

./cmake-build-debug/shell

Testing

The project includes comprehensive unit tests for all modules. To run the tests:

# Quick way
./run_tests.sh

# Or manually
cd cmake-build-debug
ctest --verbose

All tests use a custom lightweight testing framework that provides colored output and clear assertion messages.

Goals

  • Develop a functional, well‑structured shell.
  • Ensure the shell is performant and easy to use.
  • Continuously improve the project as I learn more.
  • Maintain high code quality with unit tests.

Inspiration

I’ll start by adapting the simple shell tutorial from Brennan Baker:

https://brennan.io/2015/01/16/write-a-shell-in-c/

This will serve as a solid foundation, which I'll later expand and customize. The resulting shell, named Trigger, will combine the tutorial's core ideas with additional features and optimizations.

Development

Feature development is a collaboration between the project author and AI tooling: the author reviews, directs, and integrates AI-generated contributions alongside hand-written logic. All changes undergo code review before landing.

Feel free to explore the repository, submit issues, or contribute improvements.

About

A Unix shell written in C: pipelines, glob expansion and builtins, built with CMake and tested in CI.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages