diff options
Diffstat (limited to 'shell/shell_common.h')
-rw-r--r-- | shell/shell_common.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/shell/shell_common.h b/shell/shell_common.h index a82535c86..875fd9ea7 100644 --- a/shell/shell_common.h +++ b/shell/shell_common.h | |||
@@ -34,6 +34,11 @@ enum { | |||
34 | BUILTIN_READ_SILENT = 1 << 0, | 34 | BUILTIN_READ_SILENT = 1 << 0, |
35 | BUILTIN_READ_RAW = 1 << 1, | 35 | BUILTIN_READ_RAW = 1 << 1, |
36 | }; | 36 | }; |
37 | //TODO? do not provide bashisms if not asked for: | ||
38 | //#if !ENABLE_HUSH_BASH_COMPAT && !ENABLE_ASH_BASH_COMPAT | ||
39 | //#define shell_builtin_read(setvar,argv,ifs,read_flags,n,p,t,u,d) | ||
40 | // shell_builtin_read(setvar,argv,ifs,read_flags) | ||
41 | //#endif | ||
37 | const char* FAST_FUNC | 42 | const char* FAST_FUNC |
38 | shell_builtin_read(void FAST_FUNC (*setvar)(const char *name, const char *val), | 43 | shell_builtin_read(void FAST_FUNC (*setvar)(const char *name, const char *val), |
39 | char **argv, | 44 | char **argv, |
@@ -42,7 +47,8 @@ shell_builtin_read(void FAST_FUNC (*setvar)(const char *name, const char *val), | |||
42 | const char *opt_n, | 47 | const char *opt_n, |
43 | const char *opt_p, | 48 | const char *opt_p, |
44 | const char *opt_t, | 49 | const char *opt_t, |
45 | const char *opt_u | 50 | const char *opt_u, |
51 | const char *opt_d | ||
46 | ); | 52 | ); |
47 | 53 | ||
48 | int FAST_FUNC | 54 | int FAST_FUNC |