diff options
author | 2006-10-29 02:44:48 +1000 | |
---|---|---|
committer | 2006-10-29 02:44:48 +1000 | |
commit | a6c00ca0d289f7305b1fe40ae8d0fbc55ac0a417 (patch) | |
tree | bb3bc5292219981ae7c2b014be17e9004f895978 /builtin.c | |
parent | c5eaefc8b5a615c5559bb50510625d2a025dafb8 (diff) |
Minor edits
darcs-hash:20061028164448-ac50b-c53d5f235d01db3a11b01996b77411a213dc5303.gz
Diffstat (limited to 'builtin.c')
-rw-r--r-- | builtin.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -2875,15 +2875,15 @@ static int builtin_case( wchar_t **argv ) const static builtin_data_t builtin_data[]= { { - L"exit", &builtin_exit, N_( L"Exit the shell" ) + L"exit", &builtin_exit, N_( L"Exit the shell" ) } , { - L"block", &builtin_block, N_( L"Temporarily block delivery of events" ) + L"block", &builtin_block, N_( L"Temporarily block delivery of events" ) } , { - L"builtin", &builtin_builtin, N_( L"Run a builtin command instead of a function" ) + L"builtin", &builtin_builtin, N_( L"Run a builtin command instead of a function" ) } , { @@ -3085,6 +3085,8 @@ int builtin_exists( wchar_t *cmd ) */ static int internal_help( wchar_t *cmd ) { + CHECK( cmd, 0 ); + if( wcscmp( cmd, L"for" ) == 0 || wcscmp( cmd, L"while" ) == 0 || wcscmp( cmd, L"function" ) == 0 || |