Email or username:

Password:

Forgot your password?
Top-level
H3RALD

@klardotsh Ahhh you reminded me I actually tried really hard to implement an alternative shell in my min programming language: min-lang.org/learn-shell/

The idea isn't that bad: apart from the slightly counter-intuitive postfix notation, a concatenative language should work well as the basis for a shell (no need for pipes, weehee!). BUT I am not happy of the result so far because...

3 comments
H3RALD

@klardotsh

1) you need to quote file paths (but you do have auto completion for files when you start typing "something

2) the ! sigil must be used to execute programs *and* arguments need to be passed in prefix notation

I should try to improve this though... any idea is welcome! 😊👍

H3RALD

@klardotsh One language that may actually be a more natural fit for building a shell is actually TCL (especially about the string quoting thing). I remember trying out JimTCL and jimsh a while back: jim.tcl.tk/index.html/doc/www/

The project was started by Antirez (Salvatore Sanfilippo, probably one of the few great programming minds my country contributed to the world), of linenoise and redis fame, and the shell does come with linenoise obviously for line editing.

spooky blip 👻

@h3rald wait off topic but WHAT no way, you're the min author?! I played with that briefly back in like 2021ish and thought it was super neat :)

Go Up