• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/bash-94.1.2/bash-3.2/builtins/

Lines Matching +defs:temp +defs:directory

123    change the current working directory.  It is called by cd_to_string (),
130 char *dirname, *cdpath, *path, *temp;
197 /* Find directory in $CDPATH. */
203 temp = sh_makepath (path, dirname, MP_DOTILDE);
206 if (change_to_directory (temp, no_symlinks))
208 /* POSIX.2 says that if a nonempty directory from CDPATH
209 is used to find the directory to change to, the new
210 directory name is echoed to stdout, whether or not
212 if (opt && (path = no_symlinks ? temp : the_current_working_directory))
215 free (temp);
225 free (temp);
229 try the current directory, so we just punt now with an error
232 specifying the current directory. */
242 /* When we get here, DIRNAME is the directory to change to. If we
252 a shell variable, whose value contains the directory to
256 temp = get_string_value (dirname);
257 if (temp && change_to_directory (temp, no_symlinks))
259 printf ("%s\n", temp);
264 /* If the user requests it, try to find a directory name similar in
269 temp = cdspell (dirname);
270 if (temp && change_to_directory (temp, no_symlinks))
272 printf ("%s\n", temp);
276 FREE (temp);
285 /* Non-zero means that pwd always prints the physical directory, without
289 /* Print the name of the current working directory. */
294 char *directory;
319 directory = tcwd ? (verbatim_pwd ? sh_physpath (tcwd, 0) : tcwd)
324 if ((tcwd && directory == 0) ||
326 directory = resetpwd ("pwd");
330 if (directory)
332 printf ("%s\n", directory);
335 setpwd (directory);
336 if (directory != the_current_working_directory)
337 free (directory);
352 /* Do the work of changing to the directory NEWDIR. Handle symbolic
356 to the working directory. Return 1 on success, 0 on failure. */
430 /* We failed to change to the appropriate directory name. If we tried
441 the canonicalized directory name (TDIR). Try what the user passed