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

Diff for /src/usr.bin/tset/tset.c between version 1.5 and 1.6

version 1.5, 1998/04/25 04:30:39 version 1.6, 1998/10/16 18:51:21
Line 218 
Line 218 
   
         if (Sflag) {          if (Sflag) {
                 (void)printf("%s ", ttype);                  (void)printf("%s ", ttype);
                 wrtermcap(tcapbuf);                  if (tcapbuf)
                           wrtermcap(tcapbuf);
         }          }
   
         if (sflag) {          if (sflag) {
Line 228 
Line 229 
                  */                   */
                 if ((p = getenv("SHELL")) &&                  if ((p = getenv("SHELL")) &&
                     !strcmp(p + strlen(p) - 3, "csh")) {                      !strcmp(p + strlen(p) - 3, "csh")) {
                         p = "set noglob histchars="";\nsetenv TERM %s;\nsetenv TERMCAP '";                          if (tcapbuf)
                         t = "';\nunset noglob histchars;\n";                                  p = "set noglob histchars="";\nsetenv TERM %s;\nsetenv TERMCAP ";
                           else
                                   p = "set noglob histchars="";\nsetenv TERM %s;\n";
                           t = "unset noglob histchars;\n";
                 } else {                  } else {
                         p = "TERM=%s;\nTERMCAP='";                          if (tcapbuf) {
                         t = "';\nexport TERMCAP TERM;\n";                                  p = "TERM=%s;\nTERMCAP=";
                                   t = "export TERMCAP TERM;\n";
                           } else {
                                   p = "TERM=%s;\n";
                                   t = "export TERMCAP;\n";
                           }
                 }                  }
                 (void)printf(p, ttype);                  (void)printf(p, ttype);
                 wrtermcap(tcapbuf);                  if (tcapbuf) {
                           putchar('\'');
                           wrtermcap(tcapbuf);
                           fputs("';\n", stdout);
                   }
                 (void)printf(t);                  (void)printf(t);
         }          }
   

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6