mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-04 10:50:50 +02:00
commit bash-20130118 snapshot
This commit is contained in:
-27
@@ -4108,33 +4108,6 @@ put_command_name_into_env (command_name)
|
||||
update_export_env_inplace ("_=", 2, command_name);
|
||||
}
|
||||
|
||||
#if 0 /* UNUSED -- it caused too many problems */
|
||||
void
|
||||
put_gnu_argv_flags_into_env (pid, flags_string)
|
||||
intmax_t pid;
|
||||
char *flags_string;
|
||||
{
|
||||
char *dummy, *pbuf;
|
||||
int l, fl;
|
||||
|
||||
pbuf = itos (pid);
|
||||
l = strlen (pbuf);
|
||||
|
||||
fl = strlen (flags_string);
|
||||
|
||||
dummy = (char *)xmalloc (l + fl + 30);
|
||||
dummy[0] = '_';
|
||||
strcpy (dummy + 1, pbuf);
|
||||
strcpy (dummy + 1 + l, "_GNU_nonoption_argv_flags_");
|
||||
dummy[l + 27] = '=';
|
||||
strcpy (dummy + l + 28, flags_string);
|
||||
|
||||
free (pbuf);
|
||||
|
||||
export_env = add_or_supercede_exported_var (dummy, 0);
|
||||
}
|
||||
#endif
|
||||
|
||||
/* **************************************************************** */
|
||||
/* */
|
||||
/* Managing variable contexts */
|
||||
|
||||
Reference in New Issue
Block a user