chiark / gitweb /
Disable all exported shell functions
[bash.git] / debian / patches / rl-setenv.dpatch
1 #! /bin/sh -e
2
3 if [ $# -eq 3 -a "$2" = '-d' ]; then
4     pdir="-d $3"
5 elif [ $# -ne 1 ]; then
6     echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
7     exit 1
8 fi
9 case "$1" in
10     -patch) patch $pdir -f --no-backup-if-mismatch -p0 < $0;;
11     -unpatch) patch $pdir -f --no-backup-if-mismatch -R -p0 < $0;;
12     *)
13         echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
14         exit 1
15 esac
16 exit 0
17
18 # DP: Prefer setenv over putenv
19
20 --- lib/readline/shell.c~       2004-10-17 13:07:37.000000000 +0200
21 +++ lib/readline/shell.c        2004-10-17 13:06:48.000000000 +0200
22 @@ -122,7 +122,7 @@
23  {
24    char *b;
25  
26 -#if defined (HAVE_PUTENV)
27 +#if 0
28    b = (char *)xmalloc (INT_STRLEN_BOUND (int) + sizeof ("LINES=") + 1);
29    sprintf (b, "LINES=%d", lines);
30    putenv (b);