Shall I do a DOS shell in Ruby..?
I've finally got an alpha version which has a lot of usability. You can find it at http://www.geocities.com/snailboy1/shell.c. Here's a list of features and bugs:
Features:
Converts Dos paths (when parameters) to Unix paths
Converts Dos flag ('/') to Unix flag ('-')
Supports Dos drive letters (see notes)
Internal cd command
Bugs:
Cannot put multiple spaces between parameters or a null parameter will be passed to command
Cannot change drive letters without using cd command
Drive letters are case-sensitive
Pressing ctrl + c exits shell
Notes:
This is an independant shell. You can set a user's default shell to it and you don't need any particular other shell installed. Download the source file and then you'll need to change some variables. Set the last 4 global variables to whatever you need. "home" is linked to drive "home_drive" and "floppy" is linked to drive "floppy_drive". "c:" is permanently "/". As you can see, I set "a:" to "/floppy" and "z:" to "/home/kenshi". Later there will be a configuration file with these settings. Then just run "gcc shell.c -o dosshell" and "./dosshell". Have fun.
Shall I do a DOS shell in Ruby..?
Ok, I found a major flaw in the prompt function and fixed it. If you've already downloaded the shell, download it again!
And GnuVince, your Ruby cannot compare to my C. Try all you want, but my Dos shell is the best. Psh... Yours even would require an interpreter. What kind of a shell requires an interpreter?
J w1|| 0v3rfl0w j00r C c0d3!!!!11 HAHAHAHALAOLAOLLOLLOLLL!!!!!!!!!111
Not with the proper care.
Im STARTING to learn java, can I do it with it or am I the one who is left out * :'(
I'm sure Java can do it. It's a lot like C anyway.
Alpha 1.2 is out now. I did some code rearranging and fixed the multiple space bug. Get it while it's fresh. There'll probably be another version tonight.
Omgz lets all make a dos shell thingy with different types of programming languages !
Bookmarks