Skip to main content

The unstable bash

Project description

Bysh

tests Upload Python Package

Bash interpreter in Python

Continuation of https://github.com/idank/bashlex. The bashlex files may have been modified.

Installation

py -3 -m venv venv && venv/scripts/activate.bat
pip install bysh
bysh

External libraries

Embedded in bysh.lib:

Notes

alpha

For now the builtins and commands does not try to mimic the exact posix/bash behavior. The goal is to have a working core, and then correct details.

tkt

|| & && ; ;; ( ) | \n

  • Simple Command
    • Noms separes par des espaces (+redirections) + control operator
  • Pipeline
    • Simple commands séparées par des pipes
  • List
    • pipelines séparées par des control operators
  • Compound Commands
    • list mais avec des infos en plus
      • {} -> execute dans current shell
      • () -> execute subshell
      • (()) -> arithmetic
      • [[ ]] -> tests
  • Shell functions
    • fonctions

stdin

Plus tard il faudra
msvcrt.getche() in (b'\x00', b'\xe0'):
https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/getch-getwch?view=vs-2019

TODO

Separate builtins from commands like $?

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bysh-0.0.4.tar.gz (72.2 kB view hashes)

Uploaded Source

Built Distribution

bysh-0.0.4-py3-none-any.whl (83.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page