]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
more: fix broken ':!command' command key
authorcgoesche <cgoesc2@wgu.edu>
Sat, 5 Apr 2025 05:43:04 +0000 (01:43 -0400)
committerKarel Zak <kzak@redhat.com>
Mon, 7 Apr 2025 12:14:45 +0000 (14:14 +0200)
Addresses: #3509
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
(cherry picked from commit 3f3bb6f9103daaf7a8f47ebe57cbe90bac852e6e)

text-utils/more.c

index f80aeff437df7d7b72373e40363b15aa4537a97d..64168d7ad8d6b46add3b597f3f63a9231370e007 100644 (file)
@@ -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;