Error E2BIG or 'Argument List Too Long' Message When Command Includes Wildcard Characters (246554)



The information in this article applies to:

  • Interix 2.2.1
  • Interix 2.2.2
  • Interix 2.2.3
  • Interix 2.2.4

This article was previously published under Q246554

SYMPTOMS

When you use wildcard characters in a command, you may receive one or both of the following error messages:
E2BIG

or
Argument list too long

CAUSE

This behavior occurs because of the value that the variable ARG_MAX possesses. ARG_MAX is defined in the exec() family of functions. ARG_MAX indicates the maximum number of characters in a command that the exec() functions can manage.

MORE INFORMATION

This error is specifically related to a shell limit on the maximum command-line length that can be managed internally. There is no mechanism to increase this shell limit.

Modification Type:MajorLast Reviewed:7/31/2001
Keywords:kbprb KB246554