]> 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)
committercgoesche <cgoesc2@wgu.edu>
Sat, 5 Apr 2025 13:38:22 +0000 (09:38 -0400)
Addresses: #3509
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
text-utils/more.c

index 92b257046b03b260df141a74100630650d60188f..a38d9ed504a3e2513f552d26edb85af86556d9f6 100644 (file)
@@ -861,6 +861,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;