Skip to content

ripel2/PSU_minishell1_2021

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minishell1

A shell with minimal functionality coded in C

About this project

This is the first of three projects where we have to implement a shell in C. The reference is the tcsh shell. See https://github.com/tcsh-org/tcsh

How to use

First compile with the Makefile

make

Then launch the shell by typing

./mysh

It also supports receiving commands with a pipe. For example :

echo "ls" | ./mysh

will work.

To exit the shell, use the command exit or Ctrl+D

Features

  • Run commands with basic arguments (e.g /bin/ls -l -a)
  • Run commands with path in the environment variable "PATH" (e.g ls)
  • Builtins cd, exit, env, setenv and unsetenv
  • Exit with Ctrl+D
  • Terminate program with Ctrl+C

About

A shell with minimal functionality coded in C

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors