uncd.c

lima-1.0b5/lib/cmds/wiz/uncd.c · 329 B

From the archive lima-1.0b5+driver.tar.gz

Download the archive   « Back to the archive contents

/* Do not remove the headers from this file! see /USAGE for more info. */

/* Beek: Nov 2 96 */

//:COMMAND
//USAGE: uncd
//
//Switch to previous working directory.

inherit CMD;

private void main()
{
  object ob = this_user()->query_shell_ob();

  ob->swap_pwd();

  outf("new cwd: %s\n", ob->get_variable("pwd") || "NONE");
}

Site Stats

Snippets: 1791
Codebases: 571