[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#27820: guix package -u: order of argument is significant
From: |
Alex Kost |
Subject: |
bug#27820: guix package -u: order of argument is significant |
Date: |
Wed, 26 Jul 2017 23:49:19 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) |
Ricardo Wurmus (2017-07-26 10:59 +0200) wrote:
> Ludovic Courtès <address@hidden> writes:
>
>> Ricardo Wurmus <address@hidden> skribis:
[...]
>>> This seems good to me. I just wonder if there are legitimate cases
>>> where a package regexp would look like a command line option. If that’s
>>> not the case could we just “unread” the argument and parse it as the
>>> next option?
>>
>> I thought about it but in theory “-” is perfectly legitimate, so I
>> thought we’d rather not try to be smart. Thoughts?
>
> Is it really legitimate? The regular expression is supposed to match on
> package names and we have no packages starting with “-”. And even if we
> did (or the user has some oddly named packages in GUIX_PACKAGE_PATH),
> they could write “^-”. Or we could demand that the argument be quoted
> (“'--foo'” or “"--foo"”) in that case.
>
> It just seems like a really rare edge case to *want* it to behave as it
> does now.
I am on "not try to be smart" side. Mark described why "-foo" is a
legitimate regexp, so I think it's better to allow users to be free in a
choice of regexps.
--
Alex
- bug#27820: guix package -u: order of argument is significant, Hartmut Goebel, 2017/07/25
- bug#27820: guix package -u: order of argument is significant, Mark H Weaver, 2017/07/25
- bug#27820: guix package -u: order of argument is significant, Ludovic Courtès, 2017/07/25
- bug#27820: guix package -u: order of argument is significant, Ricardo Wurmus, 2017/07/25
- bug#27820: guix package -u: order of argument is significant, Ludovic Courtès, 2017/07/26
- bug#27820: guix package -u: order of argument is significant, Ricardo Wurmus, 2017/07/26
- bug#27820: guix package -u: order of argument is significant, Mark H Weaver, 2017/07/26
- bug#27820: guix package -u: order of argument is significant, Ludovic Courtès, 2017/07/31
- bug#27820: guix package -u: order of argument is significant,
Alex Kost <=
bug#27820: guix package -u: order of argument is significant, Hartmut Goebel, 2017/07/26