michaelk@UCBVAX.BERKELEY.EDU (02/19/87)
I have had the "problem" of typing "rm xxx" on our CP/M machine (by mistake) as I would on a UNIX machine. This was partially fixed by making a rm.sub that passed the parameter line to ERASE.COM. This didn't really work very well because ERA isn't as flexible as rm. So...I have written an (original) rm program that acts like rm. It's now available from SIMTEL20 as: Filename Type Bytes CRC Directory PD:<CPM.DIRUTL> RM104.ARK.1 BINARY 15938 9BCBH RM104 is a file deletion program for the CP/M-80 environment that operates more or less in the style of UNIX (tm of AT&T) "rm". Unlike CP/M "erase", multiple filenames can be specified, and each can be regular-expression wildcarded. Further, it defaults into a verbose mode, and can be run in an interactive query mode. The plain '-' option is for use with filenames that start with a '-'. Usage: rm [-f] [-i] [-q] [-] [s:]filename [filename...] s: => Expand afn only with SYStem attribute files -f => Delete files, even if read-only -i => Interactive query before deleting each file -q => Quiet mode - => Designates that filenames follow The distributed compiled version of this program used the M. Kersenbrock version of croot.c where the filenames are Unix-like regular-expression (ambiguous) filenames. See the documentation for details. The handling of "SYStem attribute" and "R/O" are those defined under CP/M 3.0, although this program is also compatible with CP/M 2.2 . The compiled binary, when run under CP/M 3.0, will set the system error-status upon error to that value handled by the CCP105 CCP replacement for "make" reasons explained there (if you use CP/M 3.0 and haven't replaced your CCP with CCP105, then you're working too hard!). This program (and CCP105 also) is compiled for Z80 only! -Michael D. Kersenbrock 2/1987 Aloha, Oregon (USENET: ...!tektronix!copper!michaelk)