Your message dated Wed, 18 Feb 2026 09:51:01 +0100
with message-id <[email protected]>
and subject line 
has caused the Debian Bug report #1107270,
regarding rust-coreutils: incorrect evaluation in expr command
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1107270: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1107270
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: rust-coreutils
Version: 0.0.30-2
Severity: Normal

The following problem was reported in
https://bugs.launchpad.net/ubuntu/+source/rust-coreutils/+bug/2112445
and in upstream
https://github.com/uutils/coreutils/issues/8063

/usr/lib/cargo/bin/coreutils/expr does not correctly evaluate
`expr substr` in the following script:

#!/bin/sh
list='alpha avr hppa m68k loongarch64 (loong64) microblaze microblazeel or1k rx sh4 sh4eb tricore xtensa xtensaeb'; \
echo $list; \
len2=$((${#list}/2)); echo len2 = $len2; \
len2=$((${#list}/2)); \
if [ $len2 -gt 36 ]; then \
  while expr substr "$list" $len2 1 != " " >/dev/null; do \
    len2=$(($len2+1)); \
    echo $len2; \
  done; \
list="$(expr substr "$list" 1 $(($len2-1)))\${Newline} $(expr substr "$list" $(($len2+1)) $len2)"; \
fi;

Output in gnu-coreutils:

alpha avr hppa m68k loongarch64 (loong64) microblaze microblazeel or1k rx sh4 sh4eb tricore xtensa xtensaeb
len2 = 53

Output in rust-coreutils:

alpha avr hppa m68k loongarch64 (loong64) microblaze microblazeel or1k rx sh4 sh4eb tricore xtensa xtensaeb
len2 = 53
54
55
56
57
[...]

Best regards

Heinrich

--- End Message ---
--- Begin Message ---
fixed 1107270 0.6.0-1

thanks

--- End Message ---

Reply via email to