Date: Sat, 25 Mar 2023 18:41:42 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 270441] /bin/sh - please implement '!!' support for 'sudo !!' and 'doas !!' usage Message-ID: <bug-270441-227-QLS0YBtnRU@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-270441-227@https.bugs.freebsd.org/bugzilla/> References: <bug-270441-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D270441 --- Comment #2 from Slawomir Wojciech Wojtczak <vermaden@interia.pl> --- (In reply to Graham Perrin from comment #1) Sorry - I was leaving the house but wanted to 'submit' it before leaving so= I in a hurry :) I mean general '!!' feature that is available in all popular shells. Its just a repeat of last used command with all arguments. Example: % echo asd=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 asd % !! echo asd asd % !! echo asd asd Its just 'sudo !!' and 'doas !!' are most used ways for this feature. I also sometimes do that: % ls -o -p -t -i -0 -n -s /some/long/path % for I in `!!`; do something $I; done Regards, vermaden --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-270441-227-QLS0YBtnRU>