Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YW0Ay-0002Zb-PW for pgsql-hackers@arkaria.postgresql.org; Thu, 12 Mar 2015 10:17:12 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YW0Ay-0000ku-81 for pgsql-hackers@arkaria.postgresql.org; Thu, 12 Mar 2015 10:17:12 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YW0Aw-0000kh-Rc for pgsql-hackers@postgresql.org; Thu, 12 Mar 2015 10:17:10 +0000 Received: from mx1.redhat.com ([209.132.183.28]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YW0As-00061v-2a for pgsql-hackers@postgresql.org; Thu, 12 Mar 2015 10:17:08 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t2CAH2V6001580 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Thu, 12 Mar 2015 06:17:03 -0400 Received: from unused-4-171.brq.redhat.com (unused-4-171.brq.redhat.com [10.34.4.171]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t2CAH10Y018196 for ; Thu, 12 Mar 2015 06:17:02 -0400 Message-ID: <1426155421.2535.11.camel@redhat.com> Subject: shebang for tcl postgresql modules From: Jozef Mlich To: PostgreSQL mailing lists Date: Thu, 12 Mar 2015 11:17:01 +0100 Content-Type: multipart/mixed; boundary="=-mm6fA1+LTxSmSKSkBW5m" Mime-Version: 1.0 X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-Pg-Spam-Score: -6.9 (------) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org --=-mm6fA1+LTxSmSKSkBW5m Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Dear hackers, I would like to ask you if is there any reason to pretend tcl scripts are shell scripts? I am speaking namely about these files http://git.postgresql.org/gitweb/?p=postgresql.git;a=blob_plain;f=src/pl/tcl/modules/pltcl_delmod.in;hb=HEAD http://git.postgresql.org/gitweb/?p=postgresql.git;a=blob_plain;f=src/pl/tcl/modules/pltcl_listmod.in;hb=HEAD http://git.postgresql.org/gitweb/?p=postgresql.git;a=blob_plain;f=src/pl/tcl/modules/pltcl_loadmod.in;hb=HEAD Here is the part of code I am speaking about: #! /bin/sh # Start tclsh \ exec @TCLSH@ "$0" "$@" instead of #! /usr/bin/tclsh or #! @TCLSH@ I am asking because our test suite is triggering errors on this [1]. In this case, it seems easier to modify code rather then test suite. Please apply attached patch if there is no particular reason for use of /bin/sh. [1] https://bugzilla.redhat.com/show_bug.cgi?id=1199464 -- Jozef Mlich Associate Software Engineer - EMEA ENG Developer Experience Mobile: +420 604 217 719 http://cz.redhat.com/ Red Hat, Inc. --=-mm6fA1+LTxSmSKSkBW5m Content-Disposition: attachment; filename="tcl-shebang.patch" Content-Type: text/x-patch; name="tcl-shebang.patch"; charset="UTF-8" Content-Transfer-Encoding: base64 ZGlmZiAtLWdpdCBhL3NyYy9wbC90Y2wvbW9kdWxlcy9wbHRjbF9kZWxtb2Qu aW4gYi9zcmMvcGwvdGNsL21vZHVsZXMvcGx0Y2xfZGVsbW9kLmluCmluZGV4 IGRhYTRmYWMuLjZiOGNkYTQgMTAwNjQ0Ci0tLSBhL3NyYy9wbC90Y2wvbW9k dWxlcy9wbHRjbF9kZWxtb2QuaW4KKysrIGIvc3JjL3BsL3RjbC9tb2R1bGVz L3BsdGNsX2RlbG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oIFwKLWV4ZWMgQFRDTFNIQCAiJDAiICIk QCIKKyMhIEBUQ0xTSEAKKyMKIAogIwogIyBDb2RlIHN0aWxsIGhhcyB0byBi ZSBkb2N1bWVudGVkCg== --=-mm6fA1+LTxSmSKSkBW5m Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers --=-mm6fA1+LTxSmSKSkBW5m--