BAT2CSH(1) UNIX Programmer's Manual BAT2CSH(1)
bat2csh - filter that converts DOS batch to UNIX C shell
Bat2csh makes a literal conversion of DOS batch commands
to UNIX C shell commands. It reads from standard input
(stdin) and writes to standard output (stdout). Changes
can be made to the resulting csh script to match the naming
conventions of the destination computer. To take advantage
of the additional control structures available within csh,
one may wish to restructure the resulting script.
Remember to use the chmod +x command to make the csh script
When a DOS batch syntax error is detected, bat2csh will
write to stdout the error message ### SYNTAX ERROR ###.
The last line of the batch file should end with a newline.
If not, bat2csh will usually handle it. But if bat2csh has
a problem with the missing newline, it will write the error
message ### PREMATURE END-OF-FILE ### to stdout. The last
line of the batch file will not have been successfully
If there are any errors, the number of errors are written
to the monitor (stderr).
Bat2csh does not consider the % character to be a legal
character within a filename. Bat2csh uses the % character
to locate replaceable parameters and replaceable variables.
January 12, 1994 1