Magellan Linux

Diff of /trunk/mkinitrd-magellan/klibc/usr/dash/histedit.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1121 by niro, Sat Sep 1 22:45:15 2007 UTC revision 1122 by niro, Wed Aug 18 21:11:40 2010 UTC
# Line 371  histcmd(int argc, char **argv) Line 371  histcmd(int argc, char **argv)
371   }   }
372    
373   evalstring(strcpy(stalloc(strlen(s) + 1), s),   evalstring(strcpy(stalloc(strlen(s) + 1), s),
374     ~0);     0);
375   if (displayhist && hist) {   if (displayhist && hist) {
376   /*   /*
377   *  XXX what about recursive and   *  XXX what about recursive and
# Line 396  histcmd(int argc, char **argv) Line 396  histcmd(int argc, char **argv)
396   editcmd = stalloc(strlen(editor) + strlen(editfile) + 2);   editcmd = stalloc(strlen(editor) + strlen(editfile) + 2);
397   sprintf(editcmd, "%s %s", editor, editfile);   sprintf(editcmd, "%s %s", editor, editfile);
398   /* XXX - should use no JC command */   /* XXX - should use no JC command */
399   evalstring(editcmd, ~0);   evalstring(editcmd, 0);
400   INTON;   INTON;
401   readcmdfile(editfile); /* XXX - should read back - quick tst */   readcmdfile(editfile); /* XXX - should read back - quick tst */
402   unlink(editfile);   unlink(editfile);

Legend:
Removed from v.1121  
changed lines
  Added in v.1122