Gentoo Archives: gentoo-commits

From: "Zac Medico (zmedico)" <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r11639 - main/branches/2.1.4/bin
Date: Mon, 06 Oct 2008 17:17:36
Message-Id: E1KmtiA-000700-0P@stork.gentoo.org
1 Author: zmedico
2 Date: 2008-10-06 17:17:32 +0000 (Mon, 06 Oct 2008)
3 New Revision: 11639
4
5 Modified:
6 main/branches/2.1.4/bin/filter-bash-environment.py
7 Log:
8 Bug #222091 - Filter out any instances of the \1 character from variable
9 values since this character multiplies each time that the environment
10 is saved (strange bash behavior). This can eventually result in
11 mysterious 'Argument list too long' errors from programs that have
12 huge strings of \1 characters in their environment. (trunk r11485)
13
14
15 Modified: main/branches/2.1.4/bin/filter-bash-environment.py
16 ===================================================================
17 --- main/branches/2.1.4/bin/filter-bash-environment.py 2008-10-06 16:33:25 UTC (rev 11638)
18 +++ main/branches/2.1.4/bin/filter-bash-environment.py 2008-10-06 17:17:32 UTC (rev 11639)
19 @@ -31,7 +31,7 @@
20 file_out.write(line)
21 continue
22 if pattern.match(line) is None:
23 - file_out.write(line)
24 + file_out.write(line.replace("\1", ""))
25
26 if __name__ == "__main__":
27 description = "Filter out any lines that match a given PATTERN " + \