Alle mercoledì 7 dicembre 2011, Adam D. Barratt ha scritto:
> > $ getbuildlog php5 '5.3.8.0-1+b1' i386
> 
> The second argument there is "version-pattern".  getbuildlog(1) says:
> 
>         The version and architecture patterns are interpreted as
>         extended regular expressions as described in grep(1).
> 
> so you want:
> 
>         $ getbuildlog php5 '5\.3\.8\.0-1\+b1' i386
> 
> Admittedly the --help output doesn't explicitly indicate that the
> patterns are regular expressions, but each of the examples given does
> rather imply that fact.

I see.
I admit I just read the --help output, and initially didn't pay much 
attention to the escaping of periods (especially as specifying a precise 
version so far worked, given that periods "represented themselves" in 
regexps).

May I propose to add a --exact/--string or similar switch to handle the 
"version-pattern" as a fixed string? This could also be useful for 
scripts, so they can pass the version without manually have to escape 
it.

-- 
Pino Toscano

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to