[LOW] STR #4215: install-sh gzipcp has bashism
Didier Raboud <[email protected]> Wed, 17 Oct 2012 06:28:36 -0700 (PDT)
| Newsgroups | gmane.comp.printing.cups.bugs |
|---|---|
| Message-ID | <[email protected]> |
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