Open nixpulvis opened 5 years ago
This was implemented like this to actually make use of the systems #!
functionality, however there's no real reason we can't create a Job
with the correct executable path, and pipe the text into it. This should speed things up considerable as well.
We currently implement bridged programs as files in
/tmp/oursh_bridge-<size>
, but this is not a good idea. First of allhistory
should be the only place we deal with old commands, and second, it's a data locking nightmare trying to negotiate for the same file. Worse, a program with the same interpreter and length will override the same program file, potentially causing catastrophic effect.