But if you are writing a script that generates a massive one-liner inside Crosh (e.g., a very long for loop), remember the magic number: . The Longest Command Ever (Recorded) Here it is, abbreviated for sanity:
Result: Error. Argument list too long .
I decided to find out. In a standard Bash shell on Linux, the limit is usually around 128KB to 1MB (defined by ARG_MAX ). Crosh, however, is different. It is built on ash (Almquist shell) with a custom frontend running inside the Chrome browser process.
Why this number? It is a classic computing limit: (the maximum value of a signed 16-bit integer).
We found the wall. After narrowing it down, the longest successful command in Crosh is exactly:
But if you are writing a script that generates a massive one-liner inside Crosh (e.g., a very long for loop), remember the magic number: . The Longest Command Ever (Recorded) Here it is, abbreviated for sanity:
Result: Error. Argument list too long .
I decided to find out. In a standard Bash shell on Linux, the limit is usually around 128KB to 1MB (defined by ARG_MAX ). Crosh, however, is different. It is built on ash (Almquist shell) with a custom frontend running inside the Chrome browser process. longest command in crosh
Why this number? It is a classic computing limit: (the maximum value of a signed 16-bit integer). But if you are writing a script that
We found the wall. After narrowing it down, the longest successful command in Crosh is exactly: I decided to find out