[BACK]Return to histedit.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / bin / sh

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/bin/sh/histedit.c between version 1.31 and 1.32

version 1.31, 2003/08/07 09:05:32 version 1.32, 2003/10/19 01:55:05
Line 105  histedit(void)
Line 105  histedit(void)
                         /*                          /*
                          * turn editing on                           * turn editing on
                          */                           */
                           char *term;
   
                         INTOFF;                          INTOFF;
                         if (el_in == NULL)                          if (el_in == NULL)
                                 el_in = fdopen(0, "r");                                  el_in = fdopen(0, "r");
Line 117  histedit(void)
Line 119  histedit(void)
                         if (tracefile)                          if (tracefile)
                                 el_err = tracefile;                                  el_err = tracefile;
 #endif  #endif
                           term = lookupvar("TERM");
                           if (term)
                                   setenv("TERM", term, 1);
                           else
                                   unsetenv("TERM");
                         el = el_init(arg0, el_in, el_out, el_err);                          el = el_init(arg0, el_in, el_out, el_err);
                         if (el != NULL) {                          if (el != NULL) {
                                 if (hist)                                  if (hist)

Legend:
Removed from v.1.31  
changed lines
  Added in v.1.32

CVSweb <webmaster@jp.NetBSD.org>