Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-alt
Navigation:
Lists: gentoo-alt: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-alt@g.o
From: Markus Duft <mduft@g.o>
Subject: Re: Prefix/Cygwin: Cygwins .exe magic lacking in directory listings
Date: Wed, 15 Sep 2010 16:42:48 +0200
On 09/15/2010 04:37 PM, Florian CROUZAT wrote:
>
> On 15 sept. 2010, at 14:46, Al wrote:
>
>> I needed to fix a shell expression in python.eselect to match
>> "python2.6.exe". Currently it is "ls python2.?" and would match
>> "python2.6" but not the Cygwin binary with the .exe suffix.
>>
>> [...]
>>
>> Question: What is a clean fix to match both cases?
>>
>> I tried this
>>
>>   "ls python2.?{,.exe}"
>>
>> but the result is:
>>
>> ls: cannot access python2.?: No such file or directory
>> python2.6.exe
>
> Works here, using bash4, of course.
> It even works with "bash --norc" and every "shopt" off.
> Can't see what's your issue(s) here.
>
> Otherwise, just repeat the "?", see the second ls bellow (both work for me)
>   $ touch python2.6{,.exe,-config} ; ls python2.?{,.exe} ; ls python2.{?,?.exe} ; ls python2.6*

you're creating a python-2.6 file, which does _not_ exist in the cygwin 
build... thats the actual problem... you'll have to try with only the 
.exe and -config file, but without the file without extension for the 
cygwin case. the same expression has to work for the _other_ case, where 
there is a python-2.6 without .exe and the -config file...

wow... anybody understands this? :) slightly messy thought-flow...

markus

>
> -----
> Florian.
> / For security reasons, all text in this mail
>    is double-rot13 encrypted. /
>
>



Replies:
Re: Prefix/Cygwin: Cygwins .exe magic lacking in directory listings
-- Al
References:
Prefix/Cygwin: Cygwins .exe magic lacking in directory listings
-- Al
Re: Prefix/Cygwin: Cygwins .exe magic lacking in directory listings
-- Florian CROUZAT
Navigation:
Lists: gentoo-alt: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: Prefix/Cygwin: Cygwins .exe magic lacking in directory listings
Next by thread:
Re: Prefix/Cygwin: Cygwins .exe magic lacking in directory listings
Previous by date:
Re: Prefix/Cygwin: Cygwins .exe magic lacking in directory listings
Next by date:
Re: Prefix/Cygwin: Cygwins .exe magic lacking in directory listings


Updated Apr 03, 2012

Summary: Archive of the gentoo-alt mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.