Skip to content

Python-based POSIX shell with built-in commands.

License

Notifications You must be signed in to change notification settings

cintra1/psh-shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logo-psh-small

psh - Python Shell (POSIX Compliant Implementation)

For this project, I developed a POSIX-compliant shell capable of interpreting and executing shell commands. The shell supports both external programs and built-in commands such as cd, pwd, echo, and more. Throughout this project, I gained expertise in shell command parsing, Read-Eval-Print Loop (REPL) design, and the implementation of built-in commands.

Key Features:

  • Command Parsing: Handles various shell commands and arguments.
  • REPL Implementation: Continuously reads and executes user inputs.
  • Built-in Commands: Includes cd, pwd, echo, and type.

Usage:

Run the psh script to start the shell. Use commands like echo, pwd, cd, and type.

Future Enhancements:

  • Command History: Navigate through previously entered commands.
  • Advanced Parsing: Support for piping and redirection.
  • Custom Prompt: Customizable shell prompt.
  • Configuration File: User-specific settings and startup commands.

Contributing

Contributions are welcome! If you'd like to contribute to this project, please follow these steps:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature/improvement).
  3. Make your changes.
  4. Commit your changes (git commit -am 'Add new feature').
  5. Push to the branch (git push origin feature/improvement).
  6. Create a new Pull Request.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

About

Python-based POSIX shell with built-in commands.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages