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 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
- 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bysh-0.0.4.tar.gz.
File metadata
- Download URL: bysh-0.0.4.tar.gz
- Upload date:
- Size: 72.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d97f20c9cef1f2042f1e898bfb4d3d414fa677273f1c4d0e22c1d39b53260b4a
|
|
| MD5 |
66f0614b161d9311472b5b4e644a4c07
|
|
| BLAKE2b-256 |
7e976db6d4bf66edfc18188f118982d7e8bd30a0e6cb220ff82bf78badecb886
|
File details
Details for the file bysh-0.0.4-py3-none-any.whl.
File metadata
- Download URL: bysh-0.0.4-py3-none-any.whl
- Upload date:
- Size: 83.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
abfe9fd503e24f9c7aaadb042a020ef353cb89cc64ff240ca0f879df07e9f029
|
|
| MD5 |
6cbfda75a9ef41e7e398c0a2ee3ce5ec
|
|
| BLAKE2b-256 |
e19bc47ce0ac1876cd460e96d5256c55ecab68893627eaf023b4b742fc5b99cd
|