Discussion Overview
The discussion revolves around the maximum combined length of command line arguments in C and C++ programming, focusing on how this limit varies based on the operating system and command shell used.
Discussion Character
- Technical explanation, Debate/contested
Main Points Raised
- One participant inquires about the maximum combined length of command line arguments, including spaces.
- Another participant argues that command line argument restrictions are determined by the operating system rather than the programming language, suggesting that historical limits in DOS and early Windows may not apply today.
- A later reply clarifies that the limit varies by operating system, stating specific character limits for Windows and Unix systems, and references the constant ARG_MAX in C library header files.
- One participant expresses confusion regarding the topic.
Areas of Agreement / Disagreement
Participants generally agree that the limits are OS-dependent, but there is no consensus on the specific values or whether older restrictions still apply.
Contextual Notes
Participants mention varying limits across different operating systems, indicating that the discussion may be limited by the specific environments being referenced.