Skip to content
This repository was archived by the owner on Apr 9, 2025. It is now read-only.

creack/seeshell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Seeshell

Fork flow.

        a.out  pid: 5

      printf-- > Hello

        int pidA = fork();
           / \
          /   \
       Child  Parent
 getpid():6    getpid():5
     pidA:0    pidA:6
getppid():5    getppid():?

Steps

  1. Exec/fork (7-29)
  2. Read line (7-29)
  3. Split string (8-4)
  4. Use split string for parsing command line and isolate PATH (8-6, 8-11)
  5. Break out fork and introduce builtin (e.g. exit, cd, echo, pwd, export)
  6. Pipelining (using |) (8-18) (8-25)

Other topics

  1. More advanced parsing
  2. Job control
  3. Terminal management
  4. Line processing

For next stream:

  1. Write builtins.

About

Academic shell written on twitch.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Contributors