]> git.pld-linux.org Git - packages/mksh.git/blame - drop-builtins.patch
rel 3; drop builtin cat and sleep
[packages/mksh.git] / drop-builtins.patch
CommitLineData
e920f879
AM
1diff -urN mksh.org/funcs.c mksh/funcs.c
2--- mksh.org/funcs.c 2020-08-27 21:53:11.000000000 +0200
3+++ mksh/funcs.c 2023-10-05 19:06:16.456613978 +0200
4@@ -98,7 +98,6 @@
5 {Tsgbreak, c_brkcont},
6 {T__builtin, c_builtin},
7 {Tbuiltin, c_builtin},
8- {Tbcat, c_cat},
9 {Tcd, c_cd},
10 /* dash compatibility hack */
11 {"chdir", c_cd},
12@@ -152,9 +151,6 @@
13 #ifdef MKSH_PRINTF_BUILTIN
14 {"~printf", c_printf},
15 #endif
16-#if HAVE_SELECT
17- {"sleep", c_sleep},
18-#endif
19 #ifdef __MirBSD__
20 /* alias to "true" for historical reasons */
21 {"domainname", c_true},
22From 2f8a1b53b98c24c6506afdf1dd272febd49e65d2 Mon Sep 17 00:00:00 2001
23From: tg <tg@mirbsd.org>
24Date: Sun, 24 Jan 2021 19:41:07 +0000
25Subject: [PATCH] fix builtin removal-related fuckup
26
27---
28 check.t | 7 +++----
29 1 file changed, 3 insertions(+), 4 deletions(-)
30
31diff --git a/check.t b/check.t
32index f22cf367a..c6e25d712 100644
33--- a/check.t
34+++ b/check.t
35@@ -150,9 +150,8 @@ name: selftest-direct-builtin-call
36 description:
37 Check that direct builtin calls work
38 stdin:
39- ln -s "$__progname" cat || cp "$__progname" cat
40 ln -s "$__progname" echo || cp "$__progname" echo
41- ./echo -c 'echo foo' | ./cat -u
42+ ./echo -c 'echo foo'
43 expected-stdout:
44 -c echo foo
45 ---
This page took 0.144715 seconds and 4 git commands to generate.