Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Minimalist shell for educational purposes.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 Makefile
Octocat-spinner-32 README.md
Octocat-spinner-32 dashell.c
Octocat-spinner-32 launchme.c
README.md

DISCLAIMER: THIS CODE IS FOR EDUCATIONAL PURPOSES ONLY. USE AT YOUR OWN RISKS.

This is basically how a shell works.

INSTALL

  1. make

  2. (optional) Append "/path/to/dashell" to /etc/shells, to make it a valid shell:

    sudo bash -c 'echo "/path/to/dashell" >> /etc/shells' 
    
  3. (optional) Change "username"'s shell. "username" should have execute permission for the shell:

    chsh --shell /path/to/dashell username
    

USAGE

./dashell
dashell> ls -al
dashell> ./launchme 1 2 3
....
dashell> exit
Something went wrong with that request. Please try again.