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

Diff for /src/usr.bin/tmux/cmd-show-environment.c between version 1.23 and 1.24

version 1.23, 2017/04/22 10:22:39 version 1.24, 2020/03/31 17:14:40
Line 38 
Line 38 
         .name = "show-environment",          .name = "show-environment",
         .alias = "showenv",          .alias = "showenv",
   
         .args = { "gst:", 0, 1 },          .args = { "hgst:", 0, 1 },
         .usage = "[-gs] " CMD_TARGET_SESSION_USAGE " [name]",          .usage = "[-hgs] " CMD_TARGET_SESSION_USAGE " [name]",
   
         .target = { 't', CMD_FIND_SESSION, CMD_FIND_CANFAIL },          .target = { 't', CMD_FIND_SESSION, CMD_FIND_CANFAIL },
   
Line 69 
Line 69 
 cmd_show_environment_print(struct cmd *self, struct cmdq_item *item,  cmd_show_environment_print(struct cmd *self, struct cmdq_item *item,
     struct environ_entry *envent)      struct environ_entry *envent)
 {  {
         char    *escaped;          struct args     *args = self->args;
           char            *escaped;
   
           if (!args_has(args, 'h') && (envent->flags & ENVIRON_HIDDEN))
                   return;
           if (args_has(args, 'h') && (~envent->flags & ENVIRON_HIDDEN))
                   return;
   
         if (!args_has(self->args, 's')) {          if (!args_has(self->args, 's')) {
                 if (envent->value != NULL)                  if (envent->value != NULL)

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24