Replies: 1 comment 1 reply
-
It would appear that this is hard-coded by "the kernel", in this instance the MSYS2 runtime (which is derived from Cygwin). https://stackoverflow.com/questions/19354870/bash-command-line-and-input-limit#19355351 has good details about this. I fear that this is a build-time value that you cannot change. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using the latest version of Git Bash on Windows 11, and the maximum length of a command-line seems to be 32,768 characters.
Quite often when working in large directories and running something like
some-command *
I get the error about argument list being too long.Is there anything I can do to raise this limit? Tried to look with Google, and I could not find anything. This may well be an underlying Windows limitation.
I'm aware of the usual workarounds such as using
xargs
, but I find the limit quite restrictive compared to for example the 2,097,152 character limit on modern Linux distributions.Beta Was this translation helpful? Give feedback.
All reactions