Tech Support > Operating Systems > IBM OS/2 Warp > Command line limitation
Command line limitation
Posted by Bob Plyler on July 7th, 2003


Jan Danielsson wrote:
I think the limit is 256. But there is a limit (I've run into it before).

Bob Plyler

IBM 3890/XP Engineering (not an official IBM spokesperson)



Posted by Isaac on July 7th, 2003




Bob Plyler wrote:
Yes, I think 256 is right. I had that problem before using a long string
of arguments to gcc/make. Similar to yours above, I ended up having to
do something silly like "-i *.c" or something, even though there was
stuff I didn't need.

The other possible option: 32-bit CMD
<http://homepages.tesco.net/~J.deBoynePollard/Softwares/cmd.html>

It claims there is no more line length limitation:
" No more arbitrary 16-bit limits. The length of a single line in a
command script is limited only by the amount of free virtual memory in
the command interpreter process."

I have not tried this yet, I don't know how well this works.

Isaac


Posted by Marty on July 8th, 2003


Isaac wrote:
I've had make succeed in issuing a command that was several 80x25 pages
long. This process was launched directly from make itself, however, and
never had to pass through to CMD.