Skip to content

Implementation of a shell with basic functionality.

License

Notifications You must be signed in to change notification settings

karlhto/minishell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

minishell

A program to emulate a basic shell.

License

This software is 'protected' under the Unlicense and may be utilised freely, without warranty.

Compiling

Minishell requires your compiler to be able to compile with C11. Minishell is POSIX-compliant.

Compiling minishell:

make

or, if you want debugging turned on:

make debug

Usage

Running minishell:

cd bin
./minishell

To run any program from within the shell, just write the name of the program. Like this:

echo blah
blah

Builtin commands: \ exit exits the program \ cd changes directory of host process

To be implemented

Several features are currently missing. Here is a list:

  • Run in different environments
  • Truncate paths
  • More builtin commands, like help
  • Add args for a more interactive(?) debugging mode
  • Implement redirects (write to files and similar)
  • Implement a way to stop running processes without stopping the shell entirely
  • Find a way to keep track of background processes
  • Possibly find more efficient way to parse strings
  • Add support for arrow keys
  • Have more robust error checking
  • Escape characters somehow

About

Implementation of a shell with basic functionality.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published