ret_val = handle_close( cmd_array );
else if ( request[0] == '!') {
- if (!no_bang) system( request + 1 );
- ret_val = 1;
+ if (!no_bang) {
+ system( request + 1 );
+ ret_val = 1;
+ }
}
osrfStringArrayFree( cmd_array );
"---------------------------------------------------------------------------------\n"
"General commands:\n"
"---------------------------------------------------------------------------------\n"
- "help - Display this message\n"
- "!<command> [args] - Forks and runs the given command in the shell\n"
+ "help - Display this message\n",
+ stdout );
+ if (!no_bang) fputs(
+ "!<command> [args] - Forks and runs the given command in the shell\n",
+ stdout );
+ fputs(
/*
"time - Prints the current time\n"
"time <timestamp> - Formats seconds since epoch into readable format\n"