Home | History | Annotate | Download | only in src

Lines Matching refs:PWD

406 # Assumes that uname_s, uname_m, and PWD have been set.
446 # PWD or search the PATH.
451 */*) HOST_SH="${PWD}/${HOST_SH}"
536 # If $PWD is a valid name of the current directory, POSIX mandates
537 # that pwd return it by default which causes problems in the
538 # presence of symlinks. Unsetting PWD is simpler than changing
539 # every occurrence of pwd to use -P.
542 # And the standard says altering PWD produces unspecified results
543 # So instead just cd -P to $PWD which should make PWD be symlink free
545 cd -P "${PWD}" || bomb "Cannot cd to \$PWD ($PWD)"
546 # At this point TOP=$PWD should just work, but let's be ultra safe.
547 TOP=$( (exec pwd -P 2>/dev/null) || (exec pwd 2>/dev/null) )
2485 # XXX See TOP= above regarding pwd -P.
2486 pkgroot=$(unset PWD; cd "${pkgroot}" &&
2487 ((exec pwd -P 2>/dev/null) || (exec pwd 2>/dev/null)))