镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content
15b4tPublic

About

Unix shell built from scratch in C — REPL, pipelines, I/O redirection, background processes, quote parsing. POSIX only.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ishell

A Unix shell built from scratch in C, as a learning project.

Platform

Linux only. The shell relies on POSIX APIs (fork, execvp, pipe, dup2, waitpid) that are not available on Windows, and are not guaranteed on macOS.

Build

make

Requires gcc and make. Use make clean to remove build artifacts.

Run

./ishell

Features

  • REPL loop with a prompt
  • Builtin commands: echo, exit, type
  • Execute any program on the $PATH
  • I/O redirection: >, >>, <, 2>
  • Piping: cmd1 | cmd2
  • Multi-command pipelines: a | b | c
  • Single and double quote parsing
  • Background processes with &

About

Unix shell built from scratch in C — REPL, pipelines, I/O redirection, background processes, quote parsing. POSIX only.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages