uncd.c

gurba-0.40/lib/cmds/wiz/uncd.c · 274 B

From the archive gurba.tgz

Download the archive   « Back to the archive contents

void main( string arg ) {

  string tmp;

  tmp = this_player()->query_env( "cwd" );

  this_player()->set_env( "cwd", this_player()->query_env( "pwd" ) );

  this_player()->set_env( "pwd", tmp );
  write( "%^BOLD%^" + this_player()->query_env( "cwd" ) + "%^RESET%^\n" );
}

Site Stats

Snippets: 1791
Codebases: 571