Searched refs:pwd (Results 1 – 5 of 5) sorted by relevance
341 char *pwd; in getpwd() local350 pwd = getenv("PWD"); in getpwd()351 if (pwd && *pwd == '/' && stat(".", &stdot) != -1 && in getpwd()352 stat(pwd, &stpwd) != -1 && in getpwd()355 curdir = savestr(pwd); in getpwd()369 char *pwd; in find_curdir() local385 pwd = stalloc(i); in find_curdir()386 if (getcwd(pwd, i) != NULL) { in find_curdir()387 curdir = savestr(pwd); in find_curdir()390 stunalloc(pwd); in find_curdir()[all …]
312 CD.C: This file defines the cd and pwd builtins. The pwd com-313 mand runs /bin/pwd the first time it is invoked (unless the user316 mand is run, so subsequent pwd commands run very fast. The main
43 SAVE=`pwd`72 echo "`pwd` $DSTACK"