Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fBh7J-0007r8-0v for pgsql-hackers@arkaria.postgresql.org; Thu, 26 Apr 2018 13:39:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fBh7I-00084h-2O for pgsql-hackers@arkaria.postgresql.org; Thu, 26 Apr 2018 13:39:20 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fBh7H-00084W-RK for pgsql-hackers@lists.postgresql.org; Thu, 26 Apr 2018 13:39:19 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fBh7E-0004eZ-Fe for pgsql-hackers@postgresql.org; Thu, 26 Apr 2018 13:39:19 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w3QDd6Mo009320; Thu, 26 Apr 2018 09:39:06 -0400 From: Tom Lane To: Andreas Karlsson cc: John Naylor , Stas Kelvich , Andrew Dunstan , PostgreSQL Hackers , David Fetter Subject: Re: unused_oids script is broken with bsd sed In-reply-to: <88a5215f-61c4-0182-7f89-0f0851b0be18@proxel.se> References: <37D774E4-FE1F-437E-B3D2-593F314B7505@postgrespro.ru> <34a54c54-9132-1254-2bc3-d3489fb79728@2ndQuadrant.com> <4473.1524665917@sss.pgh.pa.us> <4DE444D1-DDE9-460F-AC2F-EB1B73D94A2D@postgrespro.ru> <26728623-7783-4103-9BED-08D443C1729F@postgrespro.ru> <19973.1524686883@sss.pgh.pa.us> <88a5215f-61c4-0182-7f89-0f0851b0be18@proxel.se> Comments: In-reply-to Andreas Karlsson message dated "Thu, 26 Apr 2018 14:54:17 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <9318.1524749946.1@sss.pgh.pa.us> Date: Thu, 26 Apr 2018 09:39:06 -0400 Message-ID: <9319.1524749946@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andreas Karlsson writes: > What about using FindBin (http://perldoc.perl.org/FindBin.html)? A quick check suggests that that's present in the core perl distribution pretty far back, so I think it'll work. Question is, is it any better than John's "dirname(__FILE__)" solution? regards, tom lane