aboutsummaryrefslogtreecommitdiff
path: root/examples/python2.7/patches/makesetup-bashism.diff
blob: 51ee475d08e90c7447674ff2b3ddf659d598c667 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# DP: Fix bashism in makesetup shell script

--- a/Modules/makesetup
+++ b/Modules/makesetup
@@ -281,7 +281,7 @@
 	-)	;;
 	*)	sedf="@sed.in.$$"
 		trap 'rm -f $sedf' 0 1 2 3
-		echo "1i\\" >$sedf
+		printf "1i\\" >$sedf
 		str="# Generated automatically from $makepre by makesetup."
 		echo "$str" >>$sedf
 		echo "s%_MODOBJS_%$OBJS%" >>$sedf