diff options
author | Ron Yorston <rmy@pobox.com> | 2017-08-22 14:56:12 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2017-08-22 14:56:12 +0100 |
commit | ce9af1cc5ea23f754587448cf35b5120c77bfeef (patch) | |
tree | 69e5eaba5e75ab909ed92d5045393471b8ff3c13 /shell/shell_common.h | |
parent | c170026700eabb10147dd848c45c06995b43a32e (diff) | |
parent | e837a0dbbebf4229306df98fe9ee3b9bb30630c4 (diff) | |
download | busybox-w32-ce9af1cc5ea23f754587448cf35b5120c77bfeef.tar.gz busybox-w32-ce9af1cc5ea23f754587448cf35b5120c77bfeef.tar.bz2 busybox-w32-ce9af1cc5ea23f754587448cf35b5120c77bfeef.zip |
Merge branch 'busybox' into merge
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 |