diff --git a/src/builtin.cpp b/src/builtin.cpp index cf4bb57ec..4e676f3a4 100644 --- a/src/builtin.cpp +++ b/src/builtin.cpp @@ -394,6 +394,7 @@ static const builtin_data_t builtin_datas[] = { {L"string", &builtin_string, N_(L"Manipulate strings")}, {L"switch", &builtin_generic, N_(L"Conditionally execute a block of commands")}, {L"test", &builtin_test, N_(L"Test a condition")}, + {L"time", &builtin_generic, N_(L"Measure how long a command or block takes")}, {L"true", &builtin_true, N_(L"Return a successful result")}, {L"ulimit", &builtin_ulimit, N_(L"Set or get the shells resource usage limits")}, {L"wait", &builtin_wait, N_(L"Wait for background processes completed")}, diff --git a/src/parse_productions.cpp b/src/parse_productions.cpp index 9584ee096..b52f1cfe8 100644 --- a/src/parse_productions.cpp +++ b/src/parse_productions.cpp @@ -397,16 +397,12 @@ RESOLVE(optional_background) { } RESOLVE(optional_time) { - UNUSED(token2); - - switch (token1.keyword) { - case parse_keyword_time: - *out_tag = parse_optional_time_time; - return production_for