From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from nick.hrz.tu-chemnitz.de ([134.109.228.11]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1Tj7cf-00088w-K5 for ptxdist@pengutronix.de; Thu, 13 Dec 2012 13:10:43 +0100 Received: from pat.hrz.tu-chemnitz.de ([134.109.133.4] helo=mailbox.hrz.tu-chemnitz.de) by nick.hrz.tu-chemnitz.de with esmtps (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.80.1) (envelope-from ) id 1Tj7cZ-0005tx-KR for ptxdist@pengutronix.de; Thu, 13 Dec 2012 13:10:36 +0100 Received: from vpnclient-202-251.hrz.tu-chemnitz.de ([134.109.202.251]) by mailbox.hrz.tu-chemnitz.de with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.80.1) (envelope-from ) id 1Tj7cZ-0008Ga-6Q for ptxdist@pengutronix.de; Thu, 13 Dec 2012 13:10:35 +0100 From: Daniel Kriesten Mime-Version: 1.0 (Apple Message framework v1283) Date: Thu, 13 Dec 2012 13:10:33 +0100 In-Reply-To: <04FD387E-4B7E-4A06-877B-73E7D1893486@etit.tu-chemnitz.de> References: <306311DA-E5B8-497B-B9EC-D79F7197B60E@tu-chemnitz.eu> <20121210085047.GJ26985@pengutronix.de> <04FD387E-4B7E-4A06-877B-73E7D1893486@etit.tu-chemnitz.de> Message-Id: Subject: Re: [ptxdist] [PATCH] fix typo in bash_completion Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0236637782==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de --===============0236637782== Content-Type: multipart/signed; boundary="Apple-Mail=_EA1B4675-D7ED-41E7-9F4C-4BEF517EAFC0"; protocol="application/pkcs7-signature"; micalg=sha1 --Apple-Mail=_EA1B4675-D7ED-41E7-9F4C-4BEF517EAFC0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Hi Michael, may be you can once more lend my a hand =85 As my Mac has Bash version 3, which is AFAIK deprecated for bash = completion, I changed the script just to fit my needs. On my linux box (recent Gentoo, bash 4.2.37) the issue is an other. If I = log in, the completion is not loaded. If I start a new shell, the = completion works. This seems to be related to the line if have ptxdist and the way Gentoo handles bash completion and the way I installed = ptxdist. As far as I can see, ptxdist is not in the path when the = completion scripts are executed at login as this is done by the global = /etc/profile early in session startup. Simply removing the if statement = solves this for me. But I guess there is a reason to check for ptxdist? Regards Daniel Am 11.12.2012 um 16:16 schrieb Daniel Kriesten: > Oh - really. I didn't know this. So with today's pull a new revision = of the completion script arrived. >=20 > So I double-checked the behavior on my Mac (GNU bash, version = 3.2.48(1)-release (x86_64-apple-darwin11)) and it fails. On my Linux Box = (where it did not work either) the problem is an other and I have to = further check it out. >=20 > So for now forget about this ... >=20 >=20 > Am 10.12.2012 um 09:50 schrieb Michael Olbrich: >=20 >> On Sat, Dec 08, 2012 at 05:35:01PM +0100, Daniel Kriesten wrote: >>> This prevents bash_completion from working correctly. >>>=20 >>> Signed-off-by: Daniel Kriesten >>> --- >>> scripts/bash_completion | 2 +- >>> 1 file changed, 1 insertion(+), 1 deletion(-) >>>=20 >>> diff --git a/scripts/bash_completion b/scripts/bash_completion >>> index ea3921d..719cb35 100644 >>> --- a/scripts/bash_completion >>> +++ b/scripts/bash_completion >>> @@ -112,7 +112,7 @@ _ptxdist_completion() >>> ;; >>> clean) >>> COMPREPLY=3D( root ) >>> - ;& >>> + ;; >>=20 >> Why this change? ";&" means fall through, like omitting then 'break' = in C >> code. This is intentional. >>=20 >> Michael >>=20 >>> get|extract|prepare|compile|install|targetinstall|tags) >>> COMPREPLY+=3D( $( compgen -W "$( $_ptxdist_cmd print = PTX_PACKAGES_SELECTED 2> /dev/null)" -- $cur ) ) >>> ;; >>> --=20 >>> 1.8.0 >>>=20 >>>=20 >>> --=20 >>> ptxdist mailing list >>> ptxdist@pengutronix.de >>>=20 >>=20 >> --=20 >> Pengutronix e.K. | = | >> Industrial Linux Solutions | = http://www.pengutronix.de/ | >> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 = | >> Amtsgericht Hildesheim, HRA 2686 | Fax: = +49-5121-206917-5555 | >>=20 >> --=20 >> ptxdist mailing list >> ptxdist@pengutronix.de >>=20 >=20 >=20 > --=20 > Daniel Kriesten > Professur Schaltkreis- und Systementwurf > Technische Universit=E4t Chemnitz, Reichenhainer Str. 31-33, 09126 = Chemnitz > Tel: +49 371 531 33058 Fax: +49 371 531 833058 > http://www.tu-chemnitz.de/etit/sse >=20 --=20 Daniel Kriesten Professur Schaltkreis- und Systementwurf Technische Universit=E4t Chemnitz, Reichenhainer Str. 31-33, 09126 = Chemnitz Tel: +49 371 531 33058 Fax: +49 371 531 833058 http://www.tu-chemnitz.de/etit/sse --Apple-Mail=_EA1B4675-D7ED-41E7-9F4C-4BEF517EAFC0 Content-Disposition: attachment; filename=smime.p7s Content-Type: application/pkcs7-signature; name=smime.p7s Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIPITCCBCEw ggMJoAMCAQICAgDHMA0GCSqGSIb3DQEBBQUAMHExCzAJBgNVBAYTAkRFMRwwGgYDVQQKExNEZXV0 c2NoZSBUZWxla29tIEFHMR8wHQYDVQQLExZULVRlbGVTZWMgVHJ1c3QgQ2VudGVyMSMwIQYDVQQD ExpEZXV0c2NoZSBUZWxla29tIFJvb3QgQ0EgMjAeFw0wNjEyMTkxMDI5MDBaFw0xOTA2MzAyMzU5 MDBaMFoxCzAJBgNVBAYTAkRFMRMwEQYDVQQKEwpERk4tVmVyZWluMRAwDgYDVQQLEwdERk4tUEtJ MSQwIgYDVQQDExtERk4tVmVyZWluIFBDQSBHbG9iYWwgLSBHMDEwggEiMA0GCSqGSIb3DQEBAQUA A4IBD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aVW5pdmVyc2l0YWV0c3JlY2hlbnplbnRydW0xPDA6BgNVBAMTM1RVIENoZW1uaXR6IENlcnRp ZmljYXRpb24gQXV0aG9yaXR5IC0gVFVDL1VSWiBDQSBHMzEgMB4GCSqGSIb3DQEJARYRY2FAdHUt Y2hlbW5pdHouZGUCBBI8zlYwgdkGCyqGSIb3DQEJEAILMYHJoIHGMIG9MQswCQYDVQQGEwJERTEp MCcGA1UEChMgVGVjaG5pc2NoZSBVbml2ZXJzaXRhZXQgQ2hlbW5pdHoxIzAhBgNVBAsTGlVuaXZl cnNpdGFldHNyZWNoZW56ZW50cnVtMTwwOgYDVQQDEzNUVSBDaGVtbml0eiBDZXJ0aWZpY2F0aW9u IEF1dGhvcml0eSAtIFRVQy9VUlogQ0EgRzMxIDAeBgkqhkiG9w0BCQEWEWNhQHR1LWNoZW1uaXR6 LmRlAgQSPM5WMA0GCSqGSIb3DQEBAQUABIIBAKFwqFLwMJvdENYlIVwzq+Ii6+MFXKL0mVR7Foa7 fOUYcA9t5tMBXFgn1aAKagogf3zcc65YhuJPVoMB8oMEblaGij7jqXM1n1QVvrVEymQXiNUJOUkJ cRxmYTYKjSYVYEydw8+dCSevc3mv5drGcPinoDsgRAEeh+8x5TS5k0PF68mBOFgbzEdTvPIGXIoV yVubewnrb29qoWfTgR8KdsKCf56WvEXCmAm7fVh2J3DtwMiHH1E4E52UGuhMjPS9tLBXBuJjYT5G Ei1r0B/wGl/2FY/kOMb5pfyQO76LdEE10wUowYe4/7eD2R8mpcpGY3a8KMwmaDpZYKKAggmyYggA AAAAAAA= --Apple-Mail=_EA1B4675-D7ED-41E7-9F4C-4BEF517EAFC0-- --===============0236637782== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- ptxdist mailing list ptxdist@pengutronix.de --===============0236637782==--