Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Scallop

This is a minimal toy shell written in Python. It was written as a learning exercise.

I wrote a few blog posts about it here.

Features

Features implemented:

  • system calls (eg. ls, mkdir, etc.)
  • cd
  • && command
  • pipes

Sample:

Scallop>> mkdir hello
Scallop>> cd hello
Scallop/hello>> cd ..
Scallop>> echo hi && echo bye
hi
bye
Scallop>> ls
hello  README.md  scallop.py
Scallop>> ls | wc
      3       3      27

Usage

To run from the root directory: python3 scallop.py

Resources

The following resources helped me understand shells and write this: https://github.com/tokenrove/build-your-own-shell https://github.com/kamalmarhubi/shell-workshop https://github.com/bminor/bash https://www.aosabook.org/en/bash.html https://docs.python.org/3/library/os.html

About

A minimal toy shell.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages