Closed michael-heerdegen closed 10 years ago
scsh doesn't support ## or any other mechanism like what you're describing at the moment, and I don't think I'll have time to add it any time soon.
That being said, the reader is in scsh-read.scm. If this is really important to you and you're able to, I'd encourage looking around in there, checking out how scheme48 implements ## and seeing how the same could be done for scsh. I'd welcome a pull request related to that.
As a side note, scsh really isn't optimized as a language / environment for interactive commands like shells are. It's great for programming and complex scripting in unix environments. It would make a great base for a language that is optimized for what you want, but I wouldn't recommend scsh as it is for an interactive shell.
Sorry to harrow you with another question, but this one is also important for me. I browsed some of the sources, but didn't find an answer.
I plan to use scsh as an interactive shell. scheme48 has a reader macro `##' standing for the "focus value", the last returned value. scsh doesn't have it -- is there a replacement?
Or is there another quick way to send a signal to a process I recently started but didn't asign to any variable? Thanks!