C# shell
C-sharp shell? Great!
Although my friend, when asked whether he would like to have a shell with bindings to Java, replied “System.out.println(”NO”);”… I was playing around with different shells. Zoidberg (perl), psh (perl), zsh (almost normal), etc.
Power shell would be nice, if it didn’t try to export objects into some strange new shell language constructs (cmdlets). If the thing they wanted to achieve was similarity to shell, then normal stripping of “()” and “,”, that can be deduced from context would be enough… Of course making some namespace default for searching objects (Cssh.Something), would be appropriate. “Var” keyword from C# v.3 can also come handy.
I haven’t tried cssh yet, but I can’t wait to do it! Downloading as I write it.
Just downloaded… It’s probably NOT what you’d like to use - it’s just for files, but a good start anyway.
PowerShell port was already proposed, but author doesn’t respond to emails, so project was probably dropped. Still - it’s nice to see, that some people want to get the same things I do…
As most people shout “Yet another shell and object one? NOOOOOOOOOO!!!!!!!” while reading this, I’ll tell what I want in a real linux object shell and why I’d like it to be there:
- foreach(i in Interfaces) if(!i.IsAlias) echo Format(”interface {0}: {1}”, i.Name, i.Ip);
- echo Partitions[”/dev/hda”].Capacity
- echo new Ping(”10.1.1.29″).GetAverage(5)
- prcs = Processes.Get(”terminal-name”)
foreach(prc in prcs) if(!Processes.Current.IsChildOf(prc)) Kill(prc); - Iptables.Add(”Input”, new Iptables.SourceFilter(”127.0.0.1″), Iptables.ACCEPT)
(even if that doesn’t seem that nice in this case - think about creating one SourceFilter (or some complex ‘pseudo-query’ object) from other sources (network monitoring?) and using it to create rules in real-time. - Autocomplete objects through Reflection with tab button - easy
- …
You know what processes are there - no need to grep ps. You get numbers you want - no need for awk. You know what was the problem, because of exceptions - no need to browse man for return code listings. You want to run commands - there are no problems with quotes in command / quotes in your command line / quotes in file arguments - there are only Strings.
PS1: I only found original post by google alerts - try it out :)
PS2: There was a c# shell - discontinued unfortunately :( But in case it disappears, I’ve got sources… in case…
Crap. That really doesn’t a good idea. Too many words for basic things.