view toys/pwd.c @ 139:fb0745eec453

Add "help" command. (Building help/help.h requires python, but I'll ship that file with release versions.)
author Rob Landley <rob@landley.net>
date Wed, 29 Aug 2007 08:10:01 -0500
parents 7c77c6ec17ee
children 25447caf1b4b
line wrap: on
line source

/* vi: set sw=4 ts=4: */
/*
 * pwd.c - Print working directory.
 */

#include "toys.h"

int pwd_main(void)
{
	char *pwd = xgetcwd();

	xprintf("%s\n", pwd);
	if (CFG_TOYBOX_FREE) free(pwd);

	return 0;
}