I faced a strange situation while working with tcc.exe shell. I noticed that the commands larger than 19998 characters in length are executed but are not memorized in the history (When you press up arrow, it doesn't appear)
On the other hand if the total length of command line is 19997 or less it will be both executed and memorized (and re-appear when you press up arrow).
Finally, if the command line length is exactly 19998 characters, the shell will halt when executing that command and you will not be returned back to command prompt.
For example executing the following command in which the last double-quotation mark is the 19998th character of the command will halt the shell:
Version:
On the other hand if the total length of command line is 19997 or less it will be both executed and memorized (and re-appear when you press up arrow).
Finally, if the command line length is exactly 19998 characters, the shell will halt when executing that command and you will not be returned back to command prompt.
For example executing the following command in which the last double-quotation mark is the 19998th character of the command will halt the shell:
Code:
echo "AAAA....AAA"
Note: A zip file containing a batch file consisting of the three examples mentioned above is attached. Please note that running the commands inside the batch file does not raise the halting issue.TCC LE 12.10.61 Windows XP [Version 5.1.2600]
Copyright 2011 Rex Conn & JP Software Inc. All Rights Reserved