Variable: command-line-max-length

command-line-max-length is a variable defined in callproc.c.

Value

626432

Documentation

Maximum length of a command and its arguments on this system.

This is measured in characters. Used by multiple-command-partition-arguments. Other code calls that function for cases in which it's known to be safe to run the command multiple times on subsequent partitions of the list of arguments.
(In a shell script, you might use the xargs utility.)

View in manual

Probably introduced at or before Emacs version 31.1.

Source Code

// Defined in /usr/src/emacs/src/callproc.c
  DEFVAR_INT ("command-line-max-length", command_line_max_length,
    doc: /* Maximum length of a command and its arguments on this system.
This is measured in characters.
Used by `multiple-command-partition-arguments'.  Other code calls that
function for cases in which it's known to be safe to run the command
multiple times on subsequent partitions of the list of arguments.
(In a shell script, you might use the `xargs' utility.)  */);