Subversion Repositories SvarDOS

Rev

Rev 364 | Rev 372 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 364 Rev 369
Line 11... Line 11...
11
 */
11
 */
12
 
12
 
13
static int cmd_cd(const struct cmd_funcparam *p) {
13
static int cmd_cd(const struct cmd_funcparam *p) {
14
  /* two arguments max */
14
  /* two arguments max */
15
  if (p->argc > 1) {
15
  if (p->argc > 1) {
16
    puts("Too many parameters");
16
    outputnl("Too many parameters");
17
  }
17
  }
18
 
18
 
19
  /* no argument? display current drive and dir ("CWD") */
19
  /* no argument? display current drive and dir ("CWD") */
20
  if (p->argc == 0) {
20
  if (p->argc == 0) {
21
    char buff[64];
21
    char buff[64];
Line 90... Line 90...
90
        DONE:
90
        DONE:
91
        pop ax
91
        pop ax
92
        pop dx
92
        pop dx
93
      }
93
      }
94
    }
94
    }
-
 
95
    if (err != 0) {
95
    if (err != 0) puts(doserr(err));
96
      outputnl(doserr(err));
-
 
97
    }
96
  }
98
  }
97
 
99
 
98
  return(-1);
100
  return(-1);
99
}
101
}