--- a/install-sh
+++ b/install-sh
@@ -61,10 +61,10 @@
 dst=""
 dir_arg=""
 
-function gzipcp {
+gzipcp () (
 	# gzipcp from to
 	$gzipprog -9 <"$1" >"$2"
-}
+)
 
 while [ x"$1" != x ]; do
 	case $1 in
