[BACK]Return to cmd-run-shell.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Diff for /src/usr.bin/tmux/cmd-run-shell.c between version 1.77 and 1.78

version 1.77, 2021/08/23 12:33:55 version 1.78, 2021/08/25 08:51:55
Line 30 
Line 30 
  * Runs a command without a window.   * Runs a command without a window.
  */   */
   
 static enum cmd_retval  cmd_run_shell_exec(struct cmd *, struct cmdq_item *);  static enum args_parse_type     cmd_run_shell_args_parse(struct args *, u_int,
                                       char **);
   static enum cmd_retval          cmd_run_shell_exec(struct cmd *,
                                       struct cmdq_item *);
   
 static void     cmd_run_shell_timer(int, short, void *);  static void     cmd_run_shell_timer(int, short, void *);
 static void     cmd_run_shell_callback(struct job *);  static void     cmd_run_shell_callback(struct job *);
Line 41 
Line 44 
         .name = "run-shell",          .name = "run-shell",
         .alias = "run",          .alias = "run",
   
         .args = { "bd:Ct:", 0, 1, NULL },          .args = { "bd:Ct:", 0, 1, cmd_run_shell_args_parse },
         .usage = "[-bC] [-d delay] " CMD_TARGET_PANE_USAGE " [shell-command]",          .usage = "[-bC] [-d delay] " CMD_TARGET_PANE_USAGE " [shell-command]",
   
         .target = { 't', CMD_FIND_PANE, CMD_FIND_CANFAIL },          .target = { 't', CMD_FIND_PANE, CMD_FIND_CANFAIL },
Line 61 
Line 64 
         struct event             timer;          struct event             timer;
         int                      flags;          int                      flags;
 };  };
   
   static enum args_parse_type
   cmd_run_shell_args_parse(struct args *args, __unused u_int idx,
       __unused char **cause)
   {
           if (args_has(args, 'C'))
                   return (ARGS_PARSE_COMMANDS_OR_STRING);
           return (ARGS_PARSE_STRING);
   }
   
 static void  static void
 cmd_run_shell_print(struct job *job, const char *msg)  cmd_run_shell_print(struct job *job, const char *msg)

Legend:
Removed from v.1.77  
changed lines
  Added in v.1.78