[Bug 270441] /bin/sh - please implement '!!' support for 'sudo !!' and 'doas !!' usage
Date: Sat, 25 Mar 2023 18:41:42 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270441
--- 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
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
--
You are receiving this mail because:
You are the assignee for the bug.