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

Lines Matching +defs:temp +defs:file +defs:name

5    This file is part of GNU Bash, the Bourne Again SHell.
18 along with Bash; see the file COPYING. If not, write to the Free
69 rldefs.h, even though that's not a public readline header file. */
345 /* Allow conditional parsing of the ~/.inputrc file. */
597 char *temp;
599 temp = get_string_value ("HOSTFILE");
600 if (temp == 0)
601 temp = get_string_value ("hostname_completion_file");
602 if (temp == 0)
603 temp = DEFAULT_HOSTS_FILE;
605 snarf_hosts_from_file (temp);
613 add_host_name (name)
614 char *name;
622 hostname_list[hostname_list_length++] = savestring (name);
632 FILE *file;
633 char *temp, buffer[256], name[256];
636 file = fopen (filename, "r");
637 if (file == 0)
640 while (temp = fgets (buffer, 255, file))
673 /* Gobble up names. Each name is separated with whitespace. */
686 strncpy (name, buffer + start, i - start);
687 name[i - start] = '\0';
688 add_host_name (name);
691 fclose (file);
804 a command from the history file. */
831 /* Take the command we were just editing, add it to the history file,
844 temporary file should be placed into the history. We don't do that
967 char *name;
976 name = substring (rl_line_buffer, s, e);
978 return (name);
1024 command name. */
1137 /* New posix-style command substitution or variable name? */
1184 directory (because it's not in $PATH), but the found name is
1244 char *temp;
1259 temp = rl_variable_value ("completion-ignore-case");
1260 igncase = strcmp (temp, "on") == 0;
1262 /* If this is an absolute program name, do not check it against
1280 in the file system for it. */
1338 alias = alias_list[local_index++]->name;
1367 varname = varlist[local_index++]->name;
1384 if (STREQN (shell_builtins[local_index].name, hint, hint_len))
1388 return (savestring (shell_builtins[i].name));
1406 members of PATH left. Question: should we stat each file?
1407 Answer: we call executable_file () on each file. */
1465 char *temp; /* shadows previous declaration */
1492 temp = (char *)xmalloc (l + 2 + tl);
1493 strcpy (temp, hint_text);
1494 strcpy (temp + tl, val + vl - l);
1497 temp = savestring (val);
1502 temp = strrchr (val, '/');
1504 if (temp)
1506 temp++;
1508 freetemp = match = strncmp (temp, hint, hint_len) == 0;
1510 freetemp = match = strncasecmp (temp, hint, hint_len) == 0;
1512 temp = savestring (temp);
1519 /* If we have found a match, and it is an executable file or a
1520 directory name, return it. */
1523 /* If we have found a match, and it is an executable file, return it.
1533 return (temp);
1538 free (temp);
1576 * `filename_text' into a (possibly incomplete) command name and
2210 name_is_acceptable (name)
2211 const char *name;
2216 for (nlen = strlen (name), p = fignore.ignores; p->val; p++)
2218 if (nlen > p->len && p->len > 0 && STREQ (p->val, &name[nlen - p->len]))
2227 ignore_dot_names (name)
2228 char *name;
2230 return (name[0] != '.');
2255 test_for_directory (name)
2256 const char *name;
2261 fn = bash_tilde_expand (name, 0);
2281 return_zero (name)
2282 const char *name;
2323 /* Handle symbolic link references and other directory name
2364 /* Tell the completer to replace the directory name only if we