Skip Menu |
 

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Sub-Uplevel CPAN distribution.

Report information
The Basics
Id: 31403
Status: resolved
Priority: 0/
Queue: Sub-Uplevel

People
Owner: Nobody in particular
Requestors: dam [...] modsoftsys.com
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: 0.18
Fixed in: (no value)



Subject: Example missing #!/usr/bin/perl
MIME-Version: 1.0
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Charset: utf8
X-RT-Original-Encoding: utf-8
Content-Type: multipart/mixed; boundary="----------=_1197457706-27058-15"
Content-Length: 0
Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: binary
Content-Length: 296
Download (untitled) / with headers
text/plain 296b
Hi, There's a missing "shebang" at the top of examples/uplevel-demo.pl . As the file is shipped with executable bit set, it seems that the intention is for it to be directly executable, which is not possible without "#!/usr/bin/perl" on the first line. Trivial patch attached. Thanks, dam
Subject: examples-shebang.patch
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="----------=_1197457706-27058-14"
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Charset: utf8
Content-Length: 0
Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: iso-8859-1
Content-Length: 0
Content-Type: text/x-patch; name="examples-shebang.patch"
Content-Disposition: inline; filename="examples-shebang.patch"
Content-Transfer-Encoding: binary
Content-Length: 358
Index: libsub-uplevel-perl/examples/uplevel-demo.pl =================================================================== --- libsub-uplevel-perl.orig/examples/uplevel-demo.pl 2007-12-12 13:01:53.000000000 +0200 +++ libsub-uplevel-perl/examples/uplevel-demo.pl 2007-12-12 13:02:02.000000000 +0200 @@ -1,3 +1,4 @@ +#!/usr/bin/perl use strict; use warnings;
MIME-Version: 1.0
X-Spam-Status: No, hits=-2.6 required=8.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VERIFIED,DK_SIGNED,SPF_PASS
In-Reply-To: <rt-3.6.HEAD-27058-1197457712-1512.31403-4-0 [...] rt.cpan.org>
Content-Disposition: inline
References: <RT-Ticket-31403 [...] rt.cpan.org> <rt-3.6.HEAD-27058-1197457712-1512.31403-4-0 [...] rt.cpan.org>
Content-Type: text/plain; charset=UTF-8
X-RT-Original-Encoding: utf-8
Received: from x1.develooper.com (x1.develooper.com [63.251.223.170]) by diesel.bestpractical.com (Postfix) with SMTP id 9002B4D8077 for <bug-Sub-Uplevel [...] rt.cpan.org>; Wed, 12 Dec 2007 08:03:01 -0500 (EST)
Received: (qmail 24890 invoked from network); 12 Dec 2007 13:03:00 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 12 Dec 2007 13:03:00 -0000
Received: from ro-out-1112.google.com (HELO ro-out-1112.google.com) (72.14.202.181) by 16.mx.develooper.com (qpsmtpd/0.40-dev) with ESMTP; Wed, 12 Dec 2007 05:02:52 -0800
Received: by ro-out-1112.google.com with SMTP id h4so286425roe.9 for <bug-Sub-Uplevel [...] rt.cpan.org>; Wed, 12 Dec 2007 05:02:30 -0800 (PST)
Received: by 10.142.103.6 with SMTP id a6mr114605wfc.21.1197464549264; Wed, 12 Dec 2007 05:02:29 -0800 (PST)
Received: by 10.142.127.18 with HTTP; Wed, 12 Dec 2007 05:02:29 -0800 (PST)
Delivered-To: cpan-bug+Sub-Uplevel [...] diesel.bestpractical.com
Subject: Re: [rt.cpan.org #31403] Example missing #!/usr/bin/perl
Domainkey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=iD0xt/RdMDPDhxe0SpaXtTdlFyzRJ1DoNdF6L1W2mIdjytG5XA3qPmq9kBbdGWeJBQdMaWxQEX0UqFaXBq+8U4QncJ7yAU/2PhVWln+AtNBL/H4MYjc9+u2EVDHQjhciXbe+a7zu8nJyLX3J9sINVK/8fJEZv6xec1+eNS9CaRo=
Return-Path: <xdaveg [...] gmail.com>
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=9VC6T8UKyTJwcDvZkteeIWW9BX4qvoeYe7ZCh00DmLc=; b=kqXThGUnqsMAIfjzIhjDJIDC7IRLTz2x0v3UeoKhi6iqyMdh/+kr/gXPhY4DpAWL3ypZr40zotaVOTINasXpXUsIgQNV5qHSGEAVUhmr/elrEF4iZ49J8G3o0P5JKi5gdWxaJsliVH/NcNPRIjqBXEdI5+r/rD/g+l2BeUudXkY=
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: bug-Sub-Uplevel [...] rt.cpan.org
X-Google-Sender-Auth: aa0243d036ea30de
Sender: xdaveg [...] gmail.com
Date: Wed, 12 Dec 2007 08:02:29 -0500
X-Spam-Level: *
Message-Id: <5d4beb40712120502s7ddc4225rea25b05fe2907e4f [...] mail.gmail.com>
To: bug-Sub-Uplevel [...] rt.cpan.org
Content-Transfer-Encoding: 7bit
From: "David Golden" <dagolden [...] cpan.org>
X-RT-Original-Encoding: utf-8
RT-Message-ID: <rt-3.6.HEAD-27018-1197464588-277.31403-0-0 [...] rt.cpan.org>
Content-Length: 507
Download (untitled) / with headers
text/plain 507b
On Dec 12, 2007 6:08 AM, Damyan Ivanov via RT <bug-Sub-Uplevel@rt.cpan.org> wrote: Show quoted text
> As the file is shipped with executable bit set, it seems that the > intention is for it to be directly executable, which is not possible > without "#!/usr/bin/perl" on the first line.
Thank you for noticing that -- that's very subtle. I use several custom compiled versions of perl that don't live in /usr/bin, so I'll either add my usual incantation "#!/usr/bin/env perl" or else just remove the executable bit. David
MIME-Version: 1.0
X-Spam-Status: No, hits=-2.6 required=8.0 tests=BAYES_00,SPF_PASS
In-Reply-To: <rt-3.6.HEAD-27058-1197457712-1512.31403-4-0 [...] rt.cpan.org>
References: <RT-Ticket-31403 [...] rt.cpan.org> <rt-3.6.HEAD-27058-1197457712-1512.31403-4-0 [...] rt.cpan.org>
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEUZGzBmQVszaD5dV2Bk m2msmaLOxMP5+/hN5XPNAAACb0lEQVQ4y02TzXajMAyFRZjs8WG87zhp1wZKHyAnYbZ1iZx1p/55 gJng1x/Jhpx6RfTl3isJAynFFNK9+3FSxykl/vnPprTAkhZ6XvTupJQ6/6ZSuhNIEEkQ4vLeK9Wr 85k15EAg3FKMYWl2h3pQx3NksDgCnspTjEZXQqgTe/GZSBFTJK9ohBD96Vi8KAhscMsU3PWLgDoe N0mCrykEF0LwjWj60leWwOhcsAScqYAaPj0UA1KRJH6uaiDJcQPjZWKn6YK638E3wArK99M47wCI rF5gXZioKz8PmupQl4URuKC1lDEMXNa67l9WgJO7en+AXG8aODxv4Wi9479XFYhKQP26ghmdvWT7 phkGI6CPW7vOzlSFphaIOIt62kC4sqCpJPIx+jWWOa7XOSdz3YeA3WxLVy+YOyUfG24W7Rx8LF19 wQpoIhsQb0tWfNhfqxPt2N+9x1sJ/4l6i7DW3+wD4EfD9aqjOr8v71fwUXpiK04J9qEoa6IpPKKU ZIXrdvUG0PCA3gxlwGsB9ch1UqAsXhsAKQ1KGsaYMZQ3uFqNlsMlmlkWxSuByjQCabS8RHwruwoE pNECeRscLrGEOwZeVIgF0IkPhfCzzIOT4I7fFHs7Uz/BlhS/Kp4oHLGVluuGpylg4q4wK4KkT8GI LYN3tUcSeS+MQdGuu/LlxQpeoqTOjJHr2vOdrStJQ1NO8HIFXbnLjRSSeja8K/qMY6T7mi+Vblu2 o7qRgQ8MOUFoaLWWNKHs3oqV1lBxlw1UmhTCdPvk6OPJKyeA7/yARkg9/lUqPoDsOEqiELD/ow7P E+gVYB6nHTpoP5+elPoPZY0yBuq7VQoAAAAASUVORK5CYII=
Content-Type: text/plain; charset=UTF-8
X-RT-Original-Encoding: utf-8
Received: from x1.develooper.com (x1.develooper.com [63.251.223.170]) by diesel.bestpractical.com (Postfix) with SMTP id C17784D80DE for <bug-Sub-Uplevel [...] rt.cpan.org>; Wed, 12 Dec 2007 08:16:21 -0500 (EST)
Received: (qmail 29814 invoked from network); 12 Dec 2007 13:16:21 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 12 Dec 2007 13:16:21 -0000
Received: from a-sasl-quonix.sasl.smtp.pobox.com (HELO sasl.smtp.pobox.com) (208.72.237.25) by 16.mx.develooper.com (qpsmtpd/0.40-dev) with ESMTP; Wed, 12 Dec 2007 05:16:06 -0800
Received: from a-sasl-quonix (localhost [127.0.0.1]) by a-sasl-quonix.pobox.com (Postfix) with ESMTP id 85AAB121C for <bug-Sub-Uplevel [...] rt.cpan.org>; Wed, 12 Dec 2007 08:15:52 -0500 (EST)
Received: from windhund.schwern.org (069-064-236-003.pdx.net [69.64.236.3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-sasl-quonix.pobox.com (Postfix) with ESMTP id 1F6881219 for <bug-Sub-Uplevel [...] rt.cpan.org>; Wed, 12 Dec 2007 08:15:50 -0500 (EST)
Delivered-To: cpan-bug+Sub-Uplevel [...] diesel.bestpractical.com
Subject: Re: [rt.cpan.org #31403] Example missing #!/usr/bin/perl
User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031)
Return-Path: <schwern [...] pobox.com>
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: bug-Sub-Uplevel [...] rt.cpan.org
Date: Wed, 12 Dec 2007 05:15:43 -0800
X-Spam-Level: *
Message-Id: <475FDEFF.6090604 [...] pobox.com>
To: bug-Sub-Uplevel [...] rt.cpan.org
X-Enigmail-Version: 0.95.5
Content-Transfer-Encoding: 7bit
From: Michael G Schwern <schwern [...] pobox.com>
X-RT-Original-Encoding: utf-8
RT-Message-ID: <rt-3.6.HEAD-27057-1197465390-671.31403-0-0 [...] rt.cpan.org>
Content-Length: 792
Download (untitled) / with headers
text/plain 792b
Damyan Ivanov via RT wrote: Show quoted text
> There's a missing "shebang" at the top of examples/uplevel-demo.pl . > > As the file is shipped with executable bit set, it seems that the > intention is for it to be directly executable, which is not possible > without "#!/usr/bin/perl" on the first line. > > Trivial patch attached.
That's not really viable as it assumes /usr/bin/perl is the location of the perl which installed Sub::Uplevel which is often untrue. There are facilities to write the correct #! line for programs to be installed, but uninstalled examples have to be run through perl. Presumably the person looking inside the source directory at the example code knows how to do this. So the executable bit should just be removed. -- Whip me, beat me, make my code compatible with VMS!
MIME-Version: 1.0
X-Spam-Status: No, hits=-2.6 required=8.0 tests=BAYES_00
In-Reply-To: <rt-3.6.HEAD-27018-1197464588-277.31403-6-0 [...] rt.cpan.org>
Content-Disposition: inline
References: <RT-Ticket-31403 [...] rt.cpan.org> <rt-3.6.HEAD-27058-1197457712-1512.31403-4-0 [...] rt.cpan.org> <5d4beb40712120502s7ddc4225rea25b05fe2907e4f [...] mail.gmail.com> <rt-3.6.HEAD-27018-1197464588-277.31403-6-0 [...] rt.cpan.org>
X-Virus-Checked: Checked by ClamAV on 16.mx.develooper.com
Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="SUOF0GtieIMvvwua"
Received: from x1.develooper.com (x1.develooper.com [63.251.223.170]) by diesel.bestpractical.com (Postfix) with SMTP id 477204D80DE for <bug-Sub-Uplevel [...] rt.cpan.org>; Wed, 12 Dec 2007 08:33:40 -0500 (EST)
Received: (qmail 3728 invoked from network); 12 Dec 2007 13:33:39 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 12 Dec 2007 13:33:39 -0000
Received: from fiona.creditreform.bg (HELO fiona.creditreform.bg) (212.36.1.3) by 16.mx.develooper.com (qpsmtpd/0.40-dev) with ESMTP; Wed, 12 Dec 2007 05:33:31 -0800
Received: from pc1.creditreform.bg ([192.168.110.32]) by fiona.creditreform.bg with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from <dam [...] modsoftsys.com>) id 1J2RiI-0002fZ-GV for bug-Sub-Uplevel [...] rt.cpan.org; Wed, 12 Dec 2007 15:33:26 +0200
Received: from dam by pc1.creditreform.bg with local (Exim 4.68) (envelope-from <dam [...] modsoftsys.com>) id 1J2RiI-0003QJ-7w for bug-Sub-Uplevel [...] rt.cpan.org; Wed, 12 Dec 2007 15:33:26 +0200
Delivered-To: cpan-bug+Sub-Uplevel [...] diesel.bestpractical.com
Subject: Re: [rt.cpan.org #31403] Example missing #!/usr/bin/perl
User-Agent: Mutt/1.5.17 (2007-11-01)
Return-Path: <dam [...] modsoftsys.com>
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: bug-Sub-Uplevel [...] rt.cpan.org
Date: Wed, 12 Dec 2007 15:33:26 +0200
X-Spam-Level: *
Message-Id: <20071212133326.GA30773 [...] modsoftsys.com>
To: DAGOLDEN via RT <bug-Sub-Uplevel [...] rt.cpan.org>
From: Damyan Ivanov <dam [...] modsoftsys.com>
RT-Message-ID: <rt-3.6.HEAD-27058-1197466427-906.31403-0-0 [...] rt.cpan.org>
Content-Length: 0
Content-Type: text/plain; charset="utf-8"
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: us-ascii
X-RT-Original-Encoding: utf-8
Content-Length: 508
Download (untitled) / with headers
text/plain 508b
-=| DAGOLDEN via RT, Wed, Dec 12, 2007 at 08:03:10AM -0500 |=- Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=31403 > > I use several > custom compiled versions of perl that don't live in /usr/bin, so I'll > either add my usual incantation "#!/usr/bin/env perl" or else just > remove the executable bit.
Removing executable bit (and not providing a shebang line) seems fine to me. It is just an example anyway so not so important to be run "easily". -- dam JabberID: dam@jabber.minus273.org
Content-Description: Digital signature
content-type: application/pgp-signature; name="signature.asc"
Content-Disposition: inline
Content-Length: 189
Download signature.asc
application/pgp-signature 189b

Message body not shown because it is not plain text.

MIME-Version: 1.0
X-Spam-Status: No, hits=-2.6 required=8.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VERIFIED,DK_SIGNED,SPF_PASS
In-Reply-To: <rt-3.6.HEAD-27058-1197466427-906.31403-5-0 [...] rt.cpan.org>
Content-Disposition: inline
References: <RT-Ticket-31403 [...] rt.cpan.org> <rt-3.6.HEAD-27058-1197457712-1512.31403-4-0 [...] rt.cpan.org> <5d4beb40712120502s7ddc4225rea25b05fe2907e4f [...] mail.gmail.com> <rt-3.6.HEAD-27018-1197464588-277.31403-6-0 [...] rt.cpan.org> <20071212133326.GA30773 [...] modsoftsys.com> <rt-3.6.HEAD-27058-1197466427-906.31403-5-0 [...] rt.cpan.org>
Content-Type: text/plain; charset=UTF-8
X-RT-Original-Encoding: utf-8
Received: from x1.develooper.com (x1.develooper.com [63.251.223.170]) by diesel.bestpractical.com (Postfix) with SMTP id A4FF54D80F0 for <bug-Sub-Uplevel [...] rt.cpan.org>; Wed, 12 Dec 2007 08:37:20 -0500 (EST)
Received: (qmail 5095 invoked from network); 12 Dec 2007 13:37:19 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 12 Dec 2007 13:37:19 -0000
Received: from ro-out-1112.google.com (HELO ro-out-1112.google.com) (72.14.202.177) by 16.mx.develooper.com (qpsmtpd/0.40-dev) with ESMTP; Wed, 12 Dec 2007 05:37:10 -0800
Received: by ro-out-1112.google.com with SMTP id h4so300347roe.9 for <bug-Sub-Uplevel [...] rt.cpan.org>; Wed, 12 Dec 2007 05:37:00 -0800 (PST)
Received: by 10.142.79.15 with SMTP id c15mr141841wfb.18.1197466619676; Wed, 12 Dec 2007 05:36:59 -0800 (PST)
Received: by 10.142.127.18 with HTTP; Wed, 12 Dec 2007 05:36:59 -0800 (PST)
Delivered-To: cpan-bug+Sub-Uplevel [...] diesel.bestpractical.com
Subject: Re: [rt.cpan.org #31403] Example missing #!/usr/bin/perl
Domainkey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=N4/2NEotCoMikUVAhk+hF9qx+hTn5opcx1khxfXjEPYC8BhSub1iHcrkEFu9UCxR9WUlrt8QupXs3HesEQwqo6jeY19HhoT7eHyVJg6+OHQeg7eGO5yQdkwu2ldRZU/IKgdm5R0hv/ANRMG8uw8RJMAMg+jou4gmOEDkT4f6mHk=
Return-Path: <xdaveg [...] gmail.com>
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=VRP5hetC+zQKnNkKrj0GiXFv6ag6Zyv+11GXmDlq5D8=; b=Jd7sOxbbtvVQ/JiL/GJjDeOYVA0vtii0+Wt94IIifz5CpfLMo+nmnAIx24LilZ4dGLK9tR+W10esOi0ABH7ocFsJijoZkEVG/cVulScxtiUIn3wUASZ4mLtquB1wwBqd2jnhYuYrJdJ8geMaKAlpD0ExOz3+dHEdn0cHuK+Gv78=
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: bug-Sub-Uplevel [...] rt.cpan.org
X-Google-Sender-Auth: 1212c8c17f684993
Sender: xdaveg [...] gmail.com
Date: Wed, 12 Dec 2007 08:36:59 -0500
X-Spam-Level: *
Message-Id: <5d4beb40712120536h3d4e7c54nd553072fadaa1d37 [...] mail.gmail.com>
To: bug-Sub-Uplevel [...] rt.cpan.org
Content-Transfer-Encoding: 7bit
From: "David Golden" <dagolden [...] cpan.org>
X-RT-Original-Encoding: utf-8
RT-Message-ID: <rt-3.6.HEAD-27056-1197466654-453.31403-0-0 [...] rt.cpan.org>
Content-Length: 368
Download (untitled) / with headers
text/plain 368b
On Dec 12, 2007 8:33 AM, Damyan Ivanov via RT <bug-Sub-Uplevel@rt.cpan.org> wrote: Show quoted text
> Removing executable bit (and not providing a shebang line) seems fine to > me. It is just an example anyway so not so important to be run "easily".
It's fixed in the repository. In the next release of Sub::Uplevel (whenever that will be) the executable bit will be cleared. David
MIME-Version: 1.0
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Content-Disposition: inline
Charset: utf8
Message-Id: <rt-3.6.HEAD-2989-1203624023-357.31403-0-0 [...] rt.cpan.org>
Content-Type: text/plain
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Original-Encoding: utf-8
Content-Length: 5
fixed


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.