Mercurial > hg > toybox
view toys/pwd.c @ 193:0efba0e70c43
Other chroots fall back to "/bin/sh -i", so add the -i.
author | Rob Landley <rob@landley.net> |
---|---|
date | Mon, 03 Dec 2007 20:05:14 -0600 |
parents | 25447caf1b4b |
children | d4176f3f3835 |
line wrap: on
line source
/* vi: set sw=4 ts=4: */ /* * pwd.c - Print working directory. */ #include "toys.h" void pwd_main(void) { char *pwd = xgetcwd(); xprintf("%s\n", pwd); if (CFG_TOYBOX_FREE) free(pwd); }