For the original problem as spotted in qemu builds Heinrich (thanks
again!) came up with:

From:
  len2=$$(($${#list}/2));
  if [ $$len2 -gt 36 ]; then \
     while expr substr "$$list" $$len2 1 != " " >/dev/null; do 
len2=$$(($$len2+1)); done; \
     list="$$(expr substr "$$list" 1 $$(($$len2-1)))\$${Newline} $$(expr substr 
"$$list" $$(($$len2+1)) $$len2)"; \
  fi; 

To:
  echo "$list" | fold -s -w 36 >> debian/qemu.subst

That is more the tool that is meant to do that and has the added benefit
of working with the rust coreutils already. I tested it with the lists
we get on armhf (short) and others (longer and broken up) - AFAICS it
works. @Heinich - I think it makes sense to submit that to Debian, do
you want to or should I?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2112445

Title:
  Incorrect evaluation of expr

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/2112445/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to