Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shell: more agressive shell pass-through experiment #12

Open
vindarel opened this issue Feb 18, 2021 · 1 comment
Open

Shell: more agressive shell pass-through experiment #12

vindarel opened this issue Feb 18, 2021 · 1 comment

Comments

@vindarel
Copy link
Contributor

I want to mix shell and CL and see how it goes.

We have the Clesh syntax that provides the ! passthrough. It was also enabled in ciel-repl, but we can go further.

Now every command entered in the terminal REPL (or shell) that doesn't look like a lisp expression is considered a shell command, and run.

#+(or)
(progn
  (assert (lisp-command-p "(uiop:featurep"))
  (assert (lisp-command-p "uiop:*foo*"))
  (assert (lisp-command-p "*foo"))
  (assert (lisp-command-p "#foo"))
  (assert (lisp-command-p "-foo"))
  (assert (not (lisp-command-p "uiop featurep")))
  (assert (not (lisp-command-p "ls")))
  (assert (not (lisp-command-p "ls -l")))
  (assert (not (lisp-command-p "foo --arg=1:1"))))

next: for a good shell integration we need at least basic shell completion.

vindarel added a commit that referenced this issue Feb 19, 2021
@vindarel
Copy link
Contributor Author

Lish is a fully functional Lisp shell that allows mixing shell commands and Lisp code. And it's much more featureful that our poor readline wrapper. So… use it?

https://github.com/nibbula/lish

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant