[cups.bugs] [LOW] STR #4215: install-sh gzipcp has bashism

Didier Raboud odyx at debian.org
Wed Oct 17 07:02:37 PDT 2012


DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

1.6.svn10486 's install-sh has the following bashism for the gzipcp
function which fails under other POSIX-compatible shells:

> function gzipcp {

I propose the following patch, that works under both bash and dash:


--- a/install-sh
+++ b/install-sh
@@ -61,7 +61,7 @@
 dst=""
 dir_arg=""
 
-function gzipcp {
+gzipcp () {
        # gzipcp from to
        $gzipprog -9 <"$1" >"$2"
 }


Cheers,

OdyX

Link: http://www.cups.org/str.php?L4215
Version: 1.7-current





More information about the cups-devel mailing list