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