GNU bug report logs - #17450
multiplication bug

Previous Next

Package: coreutils;

Reported by: julien becan <zoskoy <at> hotmail.fr>

Date: Fri, 9 May 2014 15:43:03 UTC

Severity: normal

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 17450 in the body.
You can then email your comments to 17450 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#17450; Package coreutils. (Fri, 09 May 2014 15:43:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to julien becan <zoskoy <at> hotmail.fr>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Fri, 09 May 2014 15:43:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: julien becan <zoskoy <at> hotmail.fr>
To: "bug-coreutils <at> gnu.org" <bug-coreutils <at> gnu.org>
Subject: multiplication bug
Date: Fri, 9 May 2014 09:32:19 +0200
[Message part 1 (text/plain, inline)]
Hello,

I've tried the `expr` program yesterday and I think that there is a problem with multiplication because when I type 2 * 2 I have a syntax error.

Do you have the solution ?

Thanks

Julien Becan
 		 	   		  
[Message part 2 (text/html, inline)]

Information forwarded to bug-coreutils <at> gnu.org:
bug#17450; Package coreutils. (Fri, 09 May 2014 15:52:01 GMT) Full text and rfc822 format available.

Message #8 received at 17450 <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: julien becan <zoskoy <at> hotmail.fr>
Cc: 17450 <at> debbugs.gnu.org
Subject: Re: bug#17450: multiplication bug
Date: Fri, 09 May 2014 16:51:15 +0100
tag 17540 notabug
close 17450
stop

http://www.gnu.org/software/coreutils/faq/coreutils-faq.html#expr-2-_002a-3-does-not-work

On 05/09/2014 08:32 AM, julien becan wrote:
> Hello,
> 
> I've tried the `expr` program yesterday and I think that there is a problem with multiplication because when I type 2 * 2 I have a syntax error.
> 
> Do you have the solution ?
> 
> Thanks
> 
> Julien Becan
>  		 	   		  
> 





bug closed, send any further explanations to 17450 <at> debbugs.gnu.org and julien becan <zoskoy <at> hotmail.fr> Request was from Pádraig Brady <P <at> draigBrady.com> to control <at> debbugs.gnu.org. (Fri, 09 May 2014 15:52:03 GMT) Full text and rfc822 format available.

Information forwarded to bug-coreutils <at> gnu.org:
bug#17450; Package coreutils. (Sat, 10 May 2014 17:51:01 GMT) Full text and rfc822 format available.

Message #13 received at 17450 <at> debbugs.gnu.org (full text, mbox):

From: Bernhard Voelker <mail <at> bernhard-voelker.de>
To: Pádraig Brady <P <at> draigBrady.com>, 
 julien becan <zoskoy <at> hotmail.fr>
Cc: 17450 <at> debbugs.gnu.org
Subject: Re: bug#17450: multiplication bug
Date: Sat, 10 May 2014 19:50:03 +0200
On 05/09/2014 05:51 PM, Pádraig Brady wrote:
> http://www.gnu.org/software/coreutils/faq/coreutils-faq.html#expr-2-_002a-3-does-not-work

Hi Padraig,

I don't know if this was discussed before: what do you think about
adding a sentence to the FAQ that some shells allow to turn off
globbing?  E.g. in bash with 'set -f' or 'set -o noglob':

  $ ( set -o noglob && expr 2 * 2 )
  4

Have a nice day,
Berny




Information forwarded to bug-coreutils <at> gnu.org:
bug#17450; Package coreutils. (Sat, 10 May 2014 18:34:01 GMT) Full text and rfc822 format available.

Message #16 received at 17450 <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: Bernhard Voelker <mail <at> bernhard-voelker.de>
Cc: 17450 <at> debbugs.gnu.org, julien becan <zoskoy <at> hotmail.fr>
Subject: Re: bug#17450: multiplication bug
Date: Sat, 10 May 2014 19:33:42 +0100
On 05/10/2014 06:50 PM, Bernhard Voelker wrote:
> On 05/09/2014 05:51 PM, Pádraig Brady wrote:
>> http://www.gnu.org/software/coreutils/faq/coreutils-faq.html#expr-2-_002a-3-does-not-work
> 
> Hi Padraig,
> 
> I don't know if this was discussed before: what do you think about
> adding a sentence to the FAQ that some shells allow to turn off
> globbing?  E.g. in bash with 'set -f' or 'set -o noglob':
> 
>   $ ( set -o noglob && expr 2 * 2 )
>   4

Maybe, though you'd probably never do that in the
context of calculations in a shell script,
where escaping the '*' is the standard and portable
way to achieve it.

cheers,
Pádraig.





bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 08 Jun 2014 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 11 years and 15 days ago.

Previous Next


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