#1034323 zsh-common: Completion problem for rubber 1.6.0

Package:
zsh-common
Source:
zsh-common
Submitter:
Nick Hastings
Date:
2023-04-13 07:00:03 UTC
Severity:
normal
Tags:
#1034323#5
Date:
2023-04-12 23:26:31 UTC
From:
To:
Dear Maintainer,

the completion for rubber (latex build wrapper) provided in
/usr/share/zsh/functions/Completion/Unix/_rubber
tries to set a shell variable "_rubber_version" using the line:

eval $(rubber --version 2>/dev/null | sed 's/^.* \([^ ]*\): */_rubber_\1=/')

In bullseye:

% rubber --version
Rubber version: 1.5.1

In bookworm:

% rubber --version
rubber 1.6.0

So the sed recipie works in bullseye but fails in bookworm. One that
works and is backwards compatible with 1.5.1 is:

_rubber_version=$(rubber --version 2>/dev/null | sed -e 's/^.* //')

However perhaps the original is backwards compatible with earlier versions too.

Regards,

Nick.