all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Listing all packages with --search now impossible
@ 2019-01-25 21:22 swedebugia
  2019-01-25 22:05 ` Ricardo Wurmus
  0 siblings, 1 reply; 3+ messages in thread
From: swedebugia @ 2019-01-25 21:22 UTC (permalink / raw)
  To: guix-devel

Hi

Yesterday when I played around with guix I noticed that the default 
behavior of
$ guix package --search
guix package: error: invalid argument: Missing required argument after 
`--search'

has changed recently from showing all packages to now showing none.

also:

$ guix package --search *
guix package: error: invalid argument: Missing required argument after 
`--search'

This is a bug. "*" should match everything.

Is this intentional?

This means that now users have to know guile to list all packages with 
all the fields. :/
-- 
Cheers
Swedebugia

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Listing all packages with --search now impossible
  2019-01-25 21:22 Listing all packages with --search now impossible swedebugia
@ 2019-01-25 22:05 ` Ricardo Wurmus
  2019-01-26  8:34   ` swedebugia
  0 siblings, 1 reply; 3+ messages in thread
From: Ricardo Wurmus @ 2019-01-25 22:05 UTC (permalink / raw)
  To: swedebugia; +Cc: guix-devel


Hi swedebugia,

<swedebugia@riseup.net> writes:

> Yesterday when I played around with guix I noticed that the default
> behavior of
> $ guix package --search
> guix package: error: invalid argument: Missing required argument after
> `--search'
>
> has changed recently from showing all packages to now showing none.
>
> also:
>
> $ guix package --search *
> guix package: error: invalid argument: Missing required argument after
> `--search'
>
> This is a bug. "*" should match everything.

This is not a bug.

The argument must be separated from the option with an “=”.  The second
problem is that “*” is not a regular expression but a shell glob
pattern.  You need to provide a regular expression.  This works:

    guix package --search=.*

-- 
Ricardo

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Listing all packages with --search now impossible
  2019-01-25 22:05 ` Ricardo Wurmus
@ 2019-01-26  8:34   ` swedebugia
  0 siblings, 0 replies; 3+ messages in thread
From: swedebugia @ 2019-01-26  8:34 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: guix-devel

[-- Attachment #1: Type: text/plain, Size: 1017 bytes --]

Ricardo Wurmus <rekado@elephly.net> skrev: (25 januari 2019 23:05:51 CET)
>
>Hi swedebugia,
>
><swedebugia@riseup.net> writes:
>
>> Yesterday when I played around with guix I noticed that the default
>> behavior of
>> $ guix package --search
>> guix package: error: invalid argument: Missing required argument
>after
>> `--search'
>>
>> has changed recently from showing all packages to now showing none.
>>
>> also:
>>
>> $ guix package --search *
>> guix package: error: invalid argument: Missing required argument
>after
>> `--search'
>>
>> This is a bug. "*" should match everything.
>
>This is not a bug.
>
>The argument must be separated from the option with an “=”.  The second
>problem is that “*” is not a regular expression but a shell glob
>pattern.  You need to provide a regular expression.  This works:
>
>    guix package --search=.*
>
>-- 
>Ricardo

Thanks!
We should document the regex syntax and an example I think.
-- 
Sent from my p≡p for Android.

[-- Attachment #2: Type: text/html, Size: 1410 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-01-26  8:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-25 21:22 Listing all packages with --search now impossible swedebugia
2019-01-25 22:05 ` Ricardo Wurmus
2019-01-26  8:34   ` swedebugia

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.