35

Weird Shell – Structural Regular Expressions Unix Shell Made in Rust

 3 years ago
source link: https://git.sr.ht/~tudor/rwsh
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

rwsh

(Better name ideas pending)

This is going to be a UNIX shell based around Structural Regular Expressions and the usam experiment .

To do:

See todo/todo.txt .

  • [x] Basic command execution with quoted string rules
  • [x] Pipes
  • [x] Structural regular expressions
    • [x] Addresses
    • [x] Basic commands ( a , c , i , d , p )
    • [x] Loops
    • [ ] Variable and command substitution (with capture group values)
      • [ ] In addresses
      • [x] In command parameters
    • [ ] Shell commands in SRE
  • [ ] Shell stuff:
    • [x] Load scripts
    • [x] || , && , !
    • [ ] Redirection
    • [ ] Job control (God have mercy)
      • [ ] Handle signals
  • [ ] Variables and variable substitution
    • [x] Strings
    • [x] Assignment
    • [ ] Arrays / Lists
    • [ ] Maps
  • [x] Command substitution
  • [ ] Control flow structures
    • [x] If-else
    • [x] While
    • [ ] For
      • [x] String globbing
    • [x] Switch
    • [x] Matches (awk-like pattern list)
  • [ ] Functions
  • [ ] Builtins
    • [x] cd
    • [x] exit
    • [x] true / false
    • [x] eval
    • [x] calc
    • ...

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK