The unstable bash
Project description
Bysh
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 git+https://github.com/haytek/bysh
$python -m 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
- list mais avec des infos en plus
- 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
Release history Release notifications | RSS feed
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.2.tar.gz
(72.4 kB
view hashes)
Built Distribution
bysh-0.0.2-py3-none-any.whl
(83.3 kB
view hashes)