RomulusCornflakes@lemmy.world to linuxmemes@lemmy.worldEnglish · 4 days agoThe Minefieldlemmy.worldimagemessage-square68linkfedilinkarrow-up1119
arrow-up1119imageThe Minefieldlemmy.worldRomulusCornflakes@lemmy.world to linuxmemes@lemmy.worldEnglish · 4 days agomessage-square68linkfedilink
minus-squareSavvyWolf@pawb.sociallinkfedilinkEnglisharrow-up14·4 days agoReminder that binaries cannot change a shell’s working directory, so the non-mines will do nothing. (cd is a shell builtin)
minus-squareglibg10b@lemmy.ziplinkfedilinkarrow-up5·4 days agoTechnically they could if run as root by modifying the parent process
minus-squareSasquatch@lemmy.mllinkfedilinkarrow-up3·4 days agoit could just reinvoke $SHELL in the parent dir
minus-squareBetterDev@programming.devlinkfedilinkarrow-up2·3 days agoI mean, you can just write a whole custom shell for this
minus-squaretyler@programming.devlinkfedilinkarrow-up2·4 days agoGood point. Also it wouldn’t stop you from just opening another terminal window haha.
Reminder that binaries cannot change a shell’s working directory, so the non-mines will do nothing.
(
cdis a shell builtin)Technically they could if run as root by modifying the parent process
it could just reinvoke
$SHELLin the parent dirI mean, you can just write a whole custom shell for this
Good point. Also it wouldn’t stop you from just opening another terminal window haha.