3 ms·
Just have cd spawn you a new shell that's in a new working directory, solved! Call it the immutable shell.
by zerocrates 5y ago
Just have cd spawn you a new shell that's in a new working directory, solved! Call it the immutable shell.
- HideousKojima 5y agoHave it contain a hash of the previous shell and cryptographically verify its authenticity with all of the electricity in Argentina and you can even get the crypto guys to promote it for you for free!
- OJFord 5y agoHa, great idea. Unfortunately for you I just minted a non-fungible token that describes my claim to its representation in digital form, I own that idea. (Of course you might want to mint a different NFT using a slightly different way of digitally representing it, but let's not worry about that. Mine.)
- ahefner 5y agoNow I'm imagining an analogy to continuation passing style: exec (tail call) 'cd', tell it to exec /bin/sh (the continuation) in the modified environment.