summaryrefslogtreecommitdiffstats
path: root/commands/pwd.c
blob: a0aa4b70f636f7c9d667f464da8068dd5042babf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <common.h>
#include <command.h>
#include <fs.h>

static int do_pwd (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
{
	printf("%s\n", getcwd());
	return 0;
}

U_BOOT_CMD_START(pwd)
	.maxargs	= 2,
	.cmd		= do_pwd,
	.usage		= "print working directory",
U_BOOT_CMD_END