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

Diff for /src/usr.bin/tip/Attic/cmds.c between version 1.14 and 1.15

version 1.14, 2002/05/07 06:56:50 version 1.15, 2002/06/12 06:07:16
Line 201 
Line 201 
 void  void
 pipefile()  pipefile()
 {  {
         int cpid, pdes[2];          int pdes[2];
         char buf[256];          char buf[256];
         int status, p;          int status, p;
           pid_t cpid;
   
         if (prompt("Local command? ", buf, sizeof(buf)))          if (prompt("Local command? ", buf, sizeof(buf)))
                 return;                  return;
Line 473 
Line 474 
 pipeout(c)  pipeout(c)
 {  {
         char buf[256];          char buf[256];
         int cpid, status, p;          int status, p;
           pid_t cpid;
         time_t start = time(NULL);          time_t start = time(NULL);
   
         putchar(c);          putchar(c);
Line 525 
Line 527 
 consh(c)  consh(c)
 {  {
         char buf[256];          char buf[256];
         int cpid, status, p;          int status, p;
           pid_t cpid;
         time_t start = time(NULL);          time_t start = time(NULL);
   
         putchar(c);          putchar(c);
Line 574 
Line 577 
 void  void
 shell()  shell()
 {  {
         int shpid, status;          int status;
         char *cp;          char *cp;
           pid_t shpid;
   
         printf("[sh]\r\n");          printf("[sh]\r\n");
         signal(SIGINT, SIG_IGN);          signal(SIGINT, SIG_IGN);
Line 875 
Line 879 
 {  {
         static char xname[BUFSIZ];          static char xname[BUFSIZ];
         char cmdbuf[BUFSIZ];          char cmdbuf[BUFSIZ];
         int pid, l;          int l;
         char *cp, *Shell;          char *cp, *Shell;
         int s, pivec[2];          int s, pivec[2];
           pid_t pid;
   
         if (!anyof(name, "~{[*?$`'\"\\"))          if (!anyof(name, "~{[*?$`'\"\\"))
                 return(name);                  return(name);

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15