Mail Archives: djgpp/1998/06/16/22:25:48
Weiqi Gao wrote:
>
> Myknees wrote:
> >
> > Whoa. That is so easy. I'm surprised it's not a FAQ; I guess people who use
> > GNU find usually know about the DOS find. I'd forgotten long ago. Would it be
> > helpful to put a note about DOS/Windows find.exe in the .../findutil.41/doc
> > directory, anyone? Mine was a silly mistake, but an easy one to make.
>
> Well, this is GNU, a replacement of UNIX---piece by piece. It is
> implied in the GNU manifesto that most of the programs replace UNIX
> commands, sometimes with exactly the same commnad name.
>
> We DOS people had it easy, because there are a total of three DOS
> commands that clashes with GNU command names.
>
> Can you find the other two? :)
I found nine, total.
Name GNU version DOS version
-----------------------------------------------------------
date Print date in many formats Show and set date
dir Like `ls' DOSish dir listing
echo No limitations Limited to 127 characters
expand Convert tabs to spaces Uncompress DOS file
find Find files in directories Find lines in file
join Join lines of two files Emulate directory as drive
mkdir Takes /; can make parents No such features
rmdir Takes /; can remove empty dirs No such features
sort No limitations Limited to 64K (!)
There are more if you count `bash' builtins, and more still with easily
confused names (i.e. `fmt' vs. `format' -- a bad one!)
At least for the Unix folks, the old command did something very close to
the GNU one.
--
Nate Eldredge
nate AT cartsys DOT com
- Raw text -