OSDN Git Service

Restore some of the mksh builtins.
authorElliott Hughes <enh@google.com>
Sat, 27 Aug 2016 01:10:18 +0000 (18:10 -0700)
committerElliott Hughes <enh@google.com>
Sat, 27 Aug 2016 01:10:18 +0000 (18:10 -0700)
This makes us match bash in terms of what is/isn't a builtin.

Bug: http://b/20720875
Change-Id: Id90aeb115cf5e5217084bc1c5f382e14033b7d49

src/funcs.c

index 519032e..0630eb0 100644 (file)
@@ -109,9 +109,7 @@ const struct builtin mkshbuiltins[] = {
        {"chdir", c_cd},
        {Tcommand, c_command},
        {"*=continue", c_brkcont},
-#if !defined(__ANDROID__)
        {"echo", c_print},
-#endif
        {"*=eval", c_eval},
        {"*=exec", c_exec},
        {"*=exit", c_exitreturn},
@@ -121,15 +119,11 @@ const struct builtin mkshbuiltins[] = {
        {Tgetopts, c_getopts},
        {"=global", c_typeset},
        {Tjobs, c_jobs},
-#if !defined(__ANDROID__)
        {"kill", c_kill},
-#endif
        {"let", c_let},
        {"let]", c_let},
        {"print", c_print},
-#if !defined(__ANDROID__)
        {"pwd", c_pwd},
-#endif
        {Tread, c_read},
        {Tsgreadonly, c_typeset},
 #if !defined(__ANDROID__)
@@ -148,9 +142,7 @@ const struct builtin mkshbuiltins[] = {
        {"*=trap", c_trap},
        {Ttrue, c_true},
        {Tgtypeset, c_typeset},
-#if !defined(__ANDROID__)
        {"ulimit", c_ulimit},
-#endif
        {"umask", c_umask},
        {Tunalias, c_unalias},
        {"*=unset", c_unset},