RomulusCornflakes@lemmy.world to linuxmemes@lemmy.worldEnglish · edit-22 days agoThe Minefieldlemmy.worldimagemessage-square76fedilinkarrow-up1378arrow-down15
arrow-up1373arrow-down1imageThe Minefieldlemmy.worldRomulusCornflakes@lemmy.world to linuxmemes@lemmy.worldEnglish · edit-22 days agomessage-square76fedilink
minus-squareSavvyWolf@pawb.sociallinkfedilinkEnglisharrow-up27·2 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-up8·2 days agoTechnically they could if run as root by modifying the parent process
minus-squareBetterDev@programming.devlinkfedilinkarrow-up4·1 day agoI mean, you can just write a whole custom shell for this
minus-squareSasquatch@lemmy.mllinkfedilinkarrow-up5·2 days agoit could just reinvoke $SHELL in the parent dir
minus-squaretyler@programming.devlinkfedilinkarrow-up3·2 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
I mean, you can just write a whole custom shell for this
it could just reinvoke
$SHELLin the parent dirGood point. Also it wouldn’t stop you from just opening another terminal window haha.