GNU bug report logs - #77443
[shepherd] Shell completion does not quote arguments

Previous Next

Package: guix;

Reported by: Tomas Volf <~@wolfsden.cz>

Date: Tue, 1 Apr 2025 22:54:02 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Tomas Volf <~@wolfsden.cz>
To: 77443 <at> debbugs.gnu.org
Subject: bug#77443: [shepherd] Shell completion does not quote arguments
Date: Wed, 02 Apr 2025 00:52:56 +0200
Hello,

given two services named cron-foo-(bar) and cron-foo-(baz), the shell
completion provided by Shepherd does not correctly handle the (
character.

    $ herd status cron-<TAB>             <-- completes into...
    $ herd status cron-foo-(<POINT>      <-- ... this
    $ herd status cron-foo-(<TAB>        <-- but this does nothing

Manually fixing up the ( and trying again:

    $ herd status cron-foo-\(bar<TAB>    <-- completes into...
    $ herd status cron-foo-(bar)         <-- ... this

However the final line, while the service name is correct (from
Shepherd's point of view), is not a valid shell syntax.

I assume some other characters might cause similar problems.

Have a nice day,
Tomas

-- 
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.




This bug report was last modified 76 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.