Subject: bug#67160: defect with linux expr command on chromebook build 118

From: Pádraig Brady <[email-masked]>
Date: Tue, 14 Nov 2023 12:05:52 +0000

tag 67160 notabug
close 67160
stop

On 14/11/2023 06:42, r n wrote:
> I have a lenovo slim 3 chromebook with linux version 5.15.130-etc and when
> expr encounter an asterisk for multiplying args, it return a syntax error
> unexpected argument 'code 1'. All other arithmetic operators are correctly
> interpreted. Please let me know if you need more information to reproduce
> the issue.

This sounds like the '*' is not appropriately quoted,
and the shell is expanding it.

For details see:
https://www.gnu.org/software/coreutils/faq/coreutils-faq.html#expr-2-_002a-3-does-not-work

thanks,
Pádraig