News for hackers. Stuff that matters.
Re:Shelling Out Sucks (2012) by joelanders on Tuesday May 12, 2015 @11:44AM (#9532573)
Is there a reason "fork over" and "shell out" can both (roughly) mean "fork and exec a shell" or the seemingly unrelated phrase "pay?"
Re:Shelling Out Sucks (2012) by cooper12 on Tuesday May 12, 2015 @12:56PM (#9533101)
Well "fork over" comes from the system call fork() which creates a new process. "Shell out" as explained by the author means to run an external shell command, which has been implemented in some languages by forking a shell, and then spawning the process. fork() is known as so because it results in a hierarchy where there is a parent process and a child process, and so forth. Shell just seems to be a general term for an interface used to operate an OS. [0] So no, just a coincidence.

[0] https://en.wikipedia.org/wiki/Shell_(computing)