On 2025-12-23, [email protected] wrote: > On Mon, Dec 22, 2025 at 10:06:36PM +0000, Albretch Mueller wrote: >> It comes really handy whenever you need to work with a buffer of bytes more >> than once. No extra objects created. >> I think internally bash does have such things. Otherwise how could two >> strings be compared? >> As an equivalent to ANSI C's memcpy and memmove in java they use >> java.lang.System.arraycopy > > For bash (well, more precisely for that Unix-y thing bash > binds together, with all the textutils and binutils), the > buffer is the file. Has always been. The interface is a > bit different to your run-of-the-mill language, but then > bash is
And if Albretch set this file on tmpfs (i.e. in /run) he would get his memory buffer.

