bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#17450: multiplication bug


From: Pádraig Brady
Subject: bug#17450: multiplication bug
Date: Sat, 10 May 2014 19:33:42 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2

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.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]