Skip to content

Team project. Implementation of shell in C. My part was parsing of the shell commands.

Notifications You must be signed in to change notification settings

OlesiaKniazeva/Minishell_21

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minishell

Screen Shot 2021-12-02 at 10 37 31 PM

Description

School 21 project. Implementation of shell in C.

Task file: Subject.pdf

This is group project. It was made by Ollietani and senglish42.

Usage

Project requiries:

  • GNU Readline Library

To run program:

  1. Clone repository: git clone git@github.com:Ollietani/Minishell_21.git

  2. cd to directory Minishell_21

  3. Run make to execute minishell

  4. After building run ./minishell

Project requirements

  • Shell should implement the buildins:

    • echo with option -n

    • pwd with no options

    • export with no options

    • unset with no options

    • env with no options or arguments

    • exit with no options

  • Not interpret unclosed quotes or unspecified special characters like \ or ;

  • Have a working History

  • Search and launch the right executable

  • and " inhibit all interpretation of a sequence of characters

  • Redirections:

    • < should redirect input
    • > should redirect output
    • << read input from the current source until a line containing only the delimiter is seen
    • >> should redirect output with append mode
  • Pipes | The output of each command in the pipeline is connected via a pipe to the input of the next command

  • Environment variables ($ followed by characters) should expand to their values

  • $? should expand to the exit status of the most recently executed foreground pipeline

  • ctrl-C ctrl-D ctrl-\ should work like in bash

  • When interactive:

    • ctrl-C print a new prompt on a newline
    • ctrl-D exit the shell
    • ctrl-\ do nothing

About

Team project. Implementation of shell in C. My part was parsing of the shell commands.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published