Date: Tue, 05 Mar 2024 00:18:29 +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-Tq4pI4mv5O@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 #9 from Slawomir Wojciech Wojtczak <vermaden@interia.pl> --- (In reply to Henrich Hartzer from comment #8) I would add '!$' to the list alongside '!!' feature. The !$ is the LAST argument of previous command. Example 1: # pwd / # mkdir asd # cd !$ cd asd # pwd /asd Example 2: # grep hostname /etc/rc.conf hostname=3D'asd' # vi !$ vi /etc/rc.conf Hope that helps. 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-Tq4pI4mv5O>