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

Diff for /src/usr.bin/tmux/tmux.c between version 1.200 and 1.201

version 1.200, 2020/05/16 15:24:28 version 1.201, 2020/05/16 16:07:55
Line 57 
Line 57 
 usage(void)  usage(void)
 {  {
         fprintf(stderr,          fprintf(stderr,
             "usage: %s [-2CluvV] [-c shell-command] [-f file] [-L socket-name]\n"              "usage: %s [-2CDluvV] [-c shell-command] [-f file] [-L socket-name]\n"
             "            [-S socket-path] [-T features] [command [flags]]\n",              "            [-S socket-path] [-T features] [command [flags]]\n",
             getprogname());              getprogname());
         exit(1);          exit(1);
Line 336 
Line 336 
         if (**argv == '-')          if (**argv == '-')
                 flags = CLIENT_LOGIN;                  flags = CLIENT_LOGIN;
   
         while ((opt = getopt(argc, argv, "2c:Cdf:lL:qS:T:uUvV")) != -1) {          while ((opt = getopt(argc, argv, "2c:CDdf:lL:qS:T:uUvV")) != -1) {
                 switch (opt) {                  switch (opt) {
                 case '2':                  case '2':
                         tty_add_features(&feat, "256", ":,");                          tty_add_features(&feat, "256", ":,");
Line 344 
Line 344 
                 case 'c':                  case 'c':
                         shell_command = optarg;                          shell_command = optarg;
                         break;                          break;
                   case 'D':
                           flags |= CLIENT_NOFORK;
                           break;
                 case 'C':                  case 'C':
                         if (flags & CLIENT_CONTROL)                          if (flags & CLIENT_CONTROL)
                                 flags |= CLIENT_CONTROLCONTROL;                                  flags |= CLIENT_CONTROLCONTROL;
Line 386 
Line 389 
         argv += optind;          argv += optind;
   
         if (shell_command != NULL && argc != 0)          if (shell_command != NULL && argc != 0)
                   usage();
           if ((flags & CLIENT_NOFORK) && argc != 0)
                 usage();                  usage();
   
         if ((ptm_fd = getptmfd()) == -1)          if ((ptm_fd = getptmfd()) == -1)

Legend:
Removed from v.1.200  
changed lines
  Added in v.1.201