From: cgoesche Date: Sat, 5 Apr 2025 05:43:04 +0000 (-0400) Subject: more: fix broken ':!command' command key X-Git-Tag: v2.41.1~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5566da37e7dd0ceaa64ee8d612abab337fea2387;p=thirdparty%2Futil-linux.git more: fix broken ':!command' command key Addresses: #3509 Signed-off-by: Christian Goeschel Ndjomouo (cherry picked from commit 3f3bb6f9103daaf7a8f47ebe57cbe90bac852e6e) --- diff --git a/text-utils/more.c b/text-utils/more.c index f80aeff43..64168d7ad 100644 --- a/text-utils/more.c +++ b/text-utils/more.c @@ -862,6 +862,9 @@ static struct number_command read_command(struct more_control *ctl) case 'p': cmd.key = more_kc_previous_file; return cmd; + case '!': + cmd.key = more_kc_run_shell; + return cmd; default: cmd.key = more_kc_unknown_command; return cmd;