Category : Batch File Utilities - mostly for DOS
Archive   : RBSETENV.ZIP
Filename : EVAL.DOC

 
Output of file : EVAL.DOC contained in archive : RBSETENV.ZIP



EVAL(1) MS-DOS auxiliary utilities EVAL(1)



NAME
eval - evaluate a command after wildcard expansion, command
and variable substitution

SYNOPSIS
eval command [argument ... ]

DESCRIPTION
eval is a utility to execute any given command, after
performing wildcard expansion, command substitution and
variable substitution on the arguments before running the
command. The command line is iteratively scanned for
command substitutions in backquotes (`...`) and environment
variables (%var), and the resulting text used as the
argument list for the first argument (the command to be
run). Command substitutions are usually performed by loading
a shell, which allows for batch files, shell aliases and
pipelines in addition to executable programs. If the first
character of the command is '@', the command is exec'ed
directly (much faster than loading a shell, but only works
with exe and com files) The magic characters '%','`', and
'@' are set by #defines in comsub.h so you can change them
if you don't like them.

When substituting the output of commands, newlines are
replaced by spaces. Arguments may need to be quoted in order
that eval will see the % or `...` characters, depending on
which shell you use. The 4DOS shell in particular needs to
have backquotes protected by double quotes.

DIAGNOSTICS
Diagnostics are printed for the following errors:
- out of memory
- command substitution failed (command not found, or line too long)

EXAMPLES

SEE ALSO
eval, incr, decr, expr

BUGS

AUTHOR
Richard Brittain ([email protected])

















  3 Responses to “Category : Batch File Utilities - mostly for DOS
Archive   : RBSETENV.ZIP
Filename : EVAL.DOC

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/