Waffelson@lemmy.world to linuxmemes@lemmy.world · 8 months agoWhen you realized you forgot sudolemmy.worldimagemessage-square11fedilinkarrow-up1298arrow-down116
arrow-up1282arrow-down1imageWhen you realized you forgot sudolemmy.worldWaffelson@lemmy.world to linuxmemes@lemmy.world · 8 months agomessage-square11fedilink
minus-squaresubtext@lemmy.worldlinkfedilinkarrow-up10·8 months agoAccording to this super user question, someone said that !! won’t work in a function, so you must use the fc -ln -1 command in a subshell instead. Note the response that says eval shouldn’t be used (not sure why)
minus-squareEsca@lemmy.onelinkfedilinkarrow-up6arrow-down1·8 months agoYeah but instead of a function you just make it an alias.
minus-squaresubtext@lemmy.worldlinkfedilinkarrow-up1arrow-down1·8 months agoOh good point, I didn’t think about that
According to this super user question, someone said that
!!
won’t work in a function, so you must use thefc -ln -1
command in a subshell instead. Note the response that sayseval
shouldn’t be used (not sure why)Yeah but instead of a function you just make it an alias.
Oh good point, I didn’t think about that