Aitor Santamaría Merino wrote:

Hi,

Gregory Pietsch escribió:

I don't see anything about edlin or code in there, so I guess they are okay, or am I just not getting any feedback?


Oops, sorry!
When the list was first posted, EDLIN didn't exist, so I'll add it (to MISC utilities, ok?). Could you report on the commands already implemented? Is there any MS-EDLIN command still to be implemented?

Here are the differences between FreeDOS edlin and MS edlin, AFAIK:
# (edit a single line) - implemented. Does not work the same as MS's because I wanted the implementation to be easy. The only difference is that the user has to type in the entire line instead of just using the -> key.
a (append) - MS edlin used this for a "paged file" where part of the file is in memory and part hadn't been read in. My implementation can handle larger files (making the paged file thing obsolete), so I changed this to append to the end of the buffer, which seems more natural.
c (copy range of lines) - implemented.
d (delete a block of lines) - implemented.
e (save and quit) - implemented.
i (insert mode) - implemented. I made the get-out-of-insert-mode character a period on an otherwise blank line instead of control-Z because the one thing I hated about MS edlin was the use of control characters in the syntax. (The period can be escaped if you really wanted just a period on a line.)
l (list lines) - implemented.
m (move block) - implemented.
p (page) - implemented.
q (quit) - implemented.
r (replace) - implemented. I added to the string syntax.
s (search and replace) - implemented. MS edlin had a control-Z between the two strings; I have a comma, which results in a cleaner syntax, IMNSHO.
t ("transfer" file) - implemented. It slurps in a whole file instead of going the "paging" route.
w (write file) - implemented. I added the optional filename because the one thing that isn't there that MS edlin has is automatic file backups. Having the filename there makes it easy to backup the file manually.
I believe that's all of them.


It will be a bit harder for me to recover one of those old MS-DOS versions to compare...

Aside from the control-characters-on-the-command-line issue (which I got around by improving the syntax), the only thing I can see that MS edlin does that mine doesn't is make automatic backups of the file you're editing. I got around it by adding the optional filename to the "w" command, so that the user can make a backup if he/she/it wants.)


I don't know much about CODE, but doesn't sound as one of the "core" MS-DOS utilities, and hence does not go into this list, sorry...

Aitor




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
_______________________________________________
Freedos-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to