[Bug 270441] /bin/sh - please implement '!!' support for 'sudo !!' and 'doas !!' usage
Date: Tue, 05 Mar 2024 00:18:29 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270441
--- 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='asd'
# vi !$
vi /etc/rc.conf
Hope that helps.
Regards,
vermaden
--
You are receiving this mail because:
You are the assignee for the bug.