Longest Command In Crosh -

However, if you use a that doesn't require forking, the limit changes.

echo [A repeated 1000 times] Result: Success. The shell printed the line perfectly.

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

Result: The cursor froze. Crosh did not crash, but it stopped accepting keyboard input for 3 seconds. After processing, the command executed.

So, what happens when you try to break them? What is the you can type before Crosh gives up? However, if you use a that doesn't require

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:

Why this number? It is a classic computing limit: (the maximum value of a signed 16-bit integer). I decided to find out

Result: Error. Argument list too long .