Ubuntu

Comment 6 for bug 619269

Johan Kiviniemi (ion) wrote :

Judging from…

ghc -e 'putStrLn $ "exec 9<&-; " ++ replicate 100000 (head "\n") ++ "ls -l /proc/self/fd;"' | strace sh -e /proc/self/fd/9 9<&0 0</dev/null

…at least dash, zsh and bash read the entire script into memory before executing it. All of them read the script, closed fd 9 and ran the ls command successfully.