Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void
- initialize_shell_variables (env, privmode)
- char **env;
- int privmode;
- {
- [ … ]
- /* If exported function, define it now. Don't import functions from
- the environment in privileged mode. */
- if (privmode == 0 && read_but_dont_execute == 0 && STREQN ("() {", string, 4))
- {
- string_length = strlen (string);
- temp_string = (char *)xmalloc (3 + string_length + char_index);
- strcpy (temp_string, name);
- temp_string[char_index] = ' ';
- strcpy (temp_string + char_index + 1, string);
- if (posixly_correct == 0 || legal_identifier (name))
- parse_and_execute (temp_string, name, SEVAL_NONINT|SEVAL_NOHIST);
- [ … ]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement