22 dbg_cmd_chdir (
char *psz_args)
24 if (!psz_args || 0==strlen(psz_args)) {
25 printf(
_(
"Argument required (new working directory).\n"));
27 if ( 0 != chdir(psz_args) ) {
28 printf(
"%s: %s\n", psz_args, strerror(1));
30 printf (
_(
"Working directory %s.\n"), psz_args);
37 dbg_cmd_chdir_init(
unsigned int c)
39 short_command[c].func = &dbg_cmd_chdir;
40 short_command[c].use =
_(
"cd DIR");
debug_return_t
Definition: trace.h:32
#define _(msgid)
Definition: make.h:293