hackclub / putting-the-you-in-cpu

A technical explainer by @kognise of how your computer runs programs, from start to finish.
https://cpu.land
MIT License
4.72k stars 146 forks source link

Incorrect argv modification in binfmt_script example #9

Closed drougge closed 11 months ago

drougge commented 11 months ago

The binfmt_misc section in chapter 3 shows argv transforming from [ "A", "B", "C" ] to [ "/usr/bin/node", "--experimental-module", "B", "C" ], missing the script name that should go before "B".

kognise commented 11 months ago

Good catch! Corrected this and made the example much better: