bug-sh-utils
[Top][All Lists]
Advanced

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

FW: expr broken


From: Dee-Ann LeBlanc
Subject: FW: expr broken
Date: Wed, 2 Oct 2002 18:24:56 -0700

I forwarded this to some folks who are helping me with scripting and
thought I'd forward it to the proper bug reporting agency too.
Obviously not all of these are your problem, but the RH 8 version I
was using gives this address, so this is a problem in your expr unless
something else is going on.

> Okay, I've discovered the oddest thing. Type the following
> at any command line where the "expr" mathematical
> expression evaluation routine is used:
>
> expr 4 + 3
>
> This will work.
>
> But type:
>
> expr 4 * 3
>
> This gives me a syntax error in:
>
> Red Hat 8.0 in bash
> FreeBSD 4.6.2 in csh
> Gentoo 1.3 in bash
> Mac OS X (Darwin) 10.1 in tcsh
>
> This works for me in:
>
> FreeBSD 4.6.2 in sh
> FreeBSD 4.6.2 in bash
>
> Can anyone else give me some data points? Other forms of
> Linux and Unix? Other shells? I look at all of the man
> pages and this is the correct format, and related items
> (such as % for division remainder) work.
>
> ---
> Dee-Ann LeBlanc
> Computer Writer, Linux Specialist
> LinuxPlanet Reporter
> All new web site at http://www.Dee-AnnLeBlanc.com/





reply via email to

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