Re: Lush as a shell
Raymond Martin <[email protected]> Sun, 12 Feb 2006 23:03:58 +0000
| Newsgroups | gmane.lisp.lush.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Yury, On Sunday 12 February 2006 21:07, Yury Sulsky wrote: > Hi Raymond, > > > At what point do you decide that the commands should be in a Lush script as opposed > > to in shell command line syntax? > > > > It is possible in bash, for instance, to type everything that would go into a script > > directly onto the command line. Everything that is in a bash script is the same > > as the command line. Shouldn't Lush exhibit the same consistency? > > > > How much of the underlying Lush functionality should be useable from the command > > line? > > It seems to me that this sort of distinction isn't really necessary; > it's easy enough to combine bash with Lush. We could, for example, > start a lushslave process and then simply replaces parentheses in the > script with calls to remote lush. > > For example, if the script is something like this: > for i in *; do (print (file-size "$i")); done > > it would be translated to something like: > lushslave & > for i in *; do > lush -e '(==> (new RemoteLush ''localhost'') exec (print > (file-size "$i")))'; > done > Okay, I see what you are saying. Yes, you are right that can be done. My point overall is to be able to have Lush as a general shell that you would have to invoke bash from, or any other shell or program for that matter. It could be used as a users login shell or the default shell altogether. It would hopefully be able to handle most expected shell syntax or hand it off to another shell it invokes and controls. To me it is preferable to have a full powered programming language controlling a shell, rather than the other way around. This is probably why perl, for one, has become so popular for system/network administration, it overcomes the inadequacies of a shell language alone for those tasks. Why not use a lisp variant for this and replace the shell outright, there are definitely lisp-like elements in conventional shells anyway. This use, amongst others, could bring Lush more towards being considered a universal shell and a universal software hub (as I have brought up in a previous post) by the larger computing community. I also think that it can help steer Lush towards being promoted as a development platform that covers a wide range of computing concerns. Raymond __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642