RomulusCornflakes@lemmy.world to linuxmemes@lemmy.worldEnglish · 3 months agoThe Minefieldlemmy.worldimagemessage-square78linkfedilinkarrow-up1397arrow-down18
arrow-up1389arrow-down1imageThe Minefieldlemmy.worldRomulusCornflakes@lemmy.world to linuxmemes@lemmy.worldEnglish · 3 months agomessage-square78linkfedilink
minus-squareSavvyWolf@pawb.sociallinkfedilinkEnglisharrow-up29·3 months 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-up9·3 months agoTechnically they could if run as root by modifying the parent process
minus-squareSasquatch@lemmy.mllinkfedilinkarrow-up6·3 months agoit could just reinvoke $SHELL in the parent dir
minus-squareBetterDev@programming.devlinkfedilinkarrow-up5·3 months agoI mean, you can just write a whole custom shell for this
minus-squaretyler@programming.devlinkfedilinkarrow-up4·3 months 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.