1
0

shell_startup.c 513 B

1234567891011121314151617181920212223
  1. /*
  2. * shell_startup.c
  3. */
  4. #include "private.h"
  5. #include <assert.h>
  6. /*----------------------------------------------------------- */
  7. bool_t clish_shell_startup(clish_shell_t * this)
  8. {
  9. const char *banner;
  10. clish_pargv_t *dummy = NULL;
  11. assert(this->startup);
  12. banner = clish_command__get_detail(this->startup);
  13. if (NULL != banner) {
  14. tinyrl_printf(this->tinyrl, "%s\n", banner);
  15. }
  16. return clish_shell_execute(this, this->startup, &dummy);
  17. }
  18. /*----------------------------------------------------------- */