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

Diff for /src/usr.bin/tmux/cmd-if-shell.c between version 1.80 and 1.81

version 1.80, 2021/08/23 12:33:55 version 1.81, 2021/08/25 08:51:55
Line 29 
Line 29 
  * Executes a tmux command if a shell command returns true or false.   * Executes a tmux command if a shell command returns true or false.
  */   */
   
 static enum cmd_retval  cmd_if_shell_exec(struct cmd *, struct cmdq_item *);  static enum args_parse_type     cmd_if_shell_args_parse(struct args *, u_int,
                                       char **);
   static enum cmd_retval          cmd_if_shell_exec(struct cmd *,
                                       struct cmdq_item *);
   
 static void     cmd_if_shell_callback(struct job *);  static void     cmd_if_shell_callback(struct job *);
 static void     cmd_if_shell_free(void *);  static void     cmd_if_shell_free(void *);
Line 38 
Line 41 
         .name = "if-shell",          .name = "if-shell",
         .alias = "if",          .alias = "if",
   
         .args = { "bFt:", 2, 3, NULL },          .args = { "bFt:", 2, 3, cmd_if_shell_args_parse },
         .usage = "[-bF] " CMD_TARGET_PANE_USAGE " shell-command command "          .usage = "[-bF] " CMD_TARGET_PANE_USAGE " shell-command command "
                  "[command]",                   "[command]",
   
Line 55 
Line 58 
         struct client           *client;          struct client           *client;
         struct cmdq_item        *item;          struct cmdq_item        *item;
 };  };
   
   static enum args_parse_type
   cmd_if_shell_args_parse(__unused struct args *args, u_int idx,
       __unused char **cause)
   {
           if (idx == 1 || idx == 2)
                   return (ARGS_PARSE_COMMANDS_OR_STRING);
           return (ARGS_PARSE_STRING);
   }
   
 static enum cmd_retval  static enum cmd_retval
 cmd_if_shell_exec(struct cmd *self, struct cmdq_item *item)  cmd_if_shell_exec(struct cmd *self, struct cmdq_item *item)

Legend:
Removed from v.1.80  
changed lines
  Added in v.1.81