Waffelson@lemmy.world to linuxmemes@lemmy.world · 8 months agoWhen you realized you forgot sudolemmy.worldimagemessage-square11fedilinkarrow-up16arrow-down11
arrow-up15arrow-down1imageWhen you realized you forgot sudolemmy.worldWaffelson@lemmy.world to linuxmemes@lemmy.world · 8 months agomessage-square11fedilink
minus-squaresubtext@lemmy.worldlinkfedilinkarrow-up0·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-up1·8 months agoYeah but instead of a function you just make it an alias.
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.