Waffelson@lemmy.world to linuxmemes@lemmy.world · 1 year agoWhen you realized you forgot sudolemmy.world1271
6When you realized you forgot sudolemmy.worldWaffelson@lemmy.world to linuxmemes@lemmy.world · 1 year ago12
Show Contentsubtext@lemmy.world0·1 year 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)
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.