Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

WAD rem does not work correctly

Sep
134
1
The manual says:
REM must be followed by a space or tab character, then the comment. TCC will ignore everything on the line following the REM, including quotes, redirection symbols, and other commands (see below for the exception to this rule).
but this
Code:
rem >>%tmpfn%
in a BTM then it produces an error:
2403

The system could'nt find the desired file.
The alternate with :: is working correct :smile:
 
I would prefer a correct working statement instead of an old crutch kludge.
So from my side you can delete it with pleasure :smile:
 
I would take the opposite approach. Keep the existing behavior, and don't break old batch files — but update the help file to match the actual behavior.
 
Also good or better :smile:
 
The help file says:
REM must be followed by a space or tab character, then the comment. TCC will ignore everything on the line following the REM, including quotes, redirection symbols, and other commands (see below for the exception to this rule).
.....
You can use REM to create a zero-byte file if you use a redirection symbol immediately after the REM command. For example, to create the zero-byte file C:\xyz:
rem>xyz

I've understand, that after the following space it "will ignore everything", but the "kludge" will have NO spaces .....
 

Similar threads

Back
Top