guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Transformations Shell Syntax


From: Ludovic Courtès
Subject: Re: Transformations Shell Syntax
Date: Wed, 16 Aug 2023 16:03:20 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)

Hi,

Hartmut Goebel <h.goebel@crazy-compilers.com> skribis:

> Am 03.07.23 um 02:01 schrieb jgart:
>> Starting multiple workers:
>>
>> $ herd start microblog-tasks@{1..4}
>> $ herd status microblog-tasks@{1..4}
>
> Please note that this syntax is expanted by the shell! Thus these
> commands are the same as
>
> $ herd start microblog-tasks@1 microblog-tasks@2 microblog-tasks@3
> microblog-tasks@4
> $ herd status microblog-tasks@1 microblog-tasks@2 microblog-tasks@3
> microblog-tasks@4

Ah yes, sorry for not noticing!

The problem with this syntax is that currently ‘start’ procedures can
take an arbitrary number of arguments:

  herd start foo x y z

means that the ‘start’ procedure of foo is passed x, y, and z as
arguments.  It’s occasionally useful and we do have a few System/Home
services that use it (‘home-pulseaudio-rtp-sink-service-type’,
‘guix-service-type’, ‘documentation-service-type’ in the installer).

So I think we can’t just remove support for that syntax.

Not sure how to improve on that.

Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]