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