Mail Archives: djgpp/1998/08/01/15:04:19
Ralph Proctor wrote:
>
> Since dir is an INTERNAL dos command which should override anything
> external, how could the
> command in c:\djgpp\bin\ -- dir.exe 102,400 [a big one] ever be called
> up? I'm just try to access as many unix-like commands as I can and get
> familiar with them.
>
> Is there any way this dir can be used on a dos machine? Or what is it for?
It does the same thing as `ls', essentially. It's traditional on Unix
machines for `ls' to also be installed as `dir', and the GNU sh-utils
package from whence this comes is Unix-based.
Also, DJGPP programs will run external programs in preference to
internal command.com ones, since to DJGPP, command.com is something to
be avoided. This is what lets the frequent Makefile idiom of `echo'ing
very long lines work.
--
Nate Eldredge
nate AT cartsys DOT com
- Raw text -