Annotation of pkgsrc/shells/bash2/patches/patch-shell.c, revision 1.1
1.1 ! christos 1: $NetBSD: patch-shell.c,v 1.1 2014/09/25 20:28:32 christos Exp $
! 2:
! 3: Add flag to disable importing of function unless explicitly enabled
! 4:
! 5: --- shell.c.orig 2002-07-01 11:27:11.000000000 -0400
! 6: +++ shell.c 2014-09-26 22:52:27.000000000 -0400
! 7: @@ -197,6 +197,7 @@
! 8: int dump_translatable_strings; /* Dump strings in $"...", don't execute. */
! 9: int dump_po_strings; /* Dump strings in $"..." in po format */
! 10: int wordexp_only = 0; /* Do word expansion only */
! 11: +int import_functions = 0; /* Import functions from environment */
! 12:
! 13: /* Some long-winded argument names. These are obviously new. */
! 14: #define Int 1
! 15: @@ -213,6 +214,7 @@
! 16: { "help", Int, &want_initial_help, (char **)0x0 },
! 17: { "init-file", Charp, (int *)0x0, &bashrc_file },
! 18: { "login", Int, &make_login_shell, (char **)0x0 },
! 19: + { "import-functions", Int, &import_functions, (char **)0x0 },
! 20: { "noediting", Int, &no_line_editing, (char **)0x0 },
! 21: { "noprofile", Int, &no_profile, (char **)0x0 },
! 22: { "norc", Int, &no_rc, (char **)0x0 },
CVSweb <webmaster@jp.NetBSD.org>