awk accepts but blows unary negation
Steve Schlaifer x3171 156/224
steve at jplgodo.UUCP
Wed Mar 19 04:16:03 AEST 1986
In article <179 at desint.UUCP>, geoff at desint.UUCP (Geoff Kuenning) writes:
> Talk about confusing me! Try this one on your system:
>
> echo 15 | awk '{t1=-15;t2=15;t3=-t2;t4=-$1;print t1,t3,t4}'
>
> On my system (Unisoft V.0) it produces:
>
> -2.71875 -2.71875 -2.71875
>
> The expression "t1=0-15" works correctly.
On my Ridge 32C running ROS 3.3, I get -15 -15 -15. Looks like you have a bug.
--
...smeagol\ Steve Schlaifer
......wlbr->!jplgodo!steve Advance Projects Group, Jet Propulsion Labs
....group3/ 4800 Oak Grove Drive, M/S 156/204
Pasadena, California, 91109
+1 818 354 3171
More information about the Net.bugs
mailing list