Article View: net.bugs
Article #510Re: awk accepts but blows unary negation
From: Steve Schlaifer x3171 156/224
Date: Tue, 18 Mar 1986 18:16
Date: Tue, 18 Mar 1986 18:16
19 lines
1292 bytes
1292 bytes
In article <179@desint.UUCP>, geoff@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
Technical Details
Message-ID:
<741@jplgodo.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!ittatc!dcdwest!sdcsvax!sdcrdcf!oberon!smeagol!jplgodo!steveReferences:
<179@desint.UUCP>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site jplgodo.UUCP Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!ittatc!dcdwest!sdcsvax!sdcrdcf!oberon!smeagol!jplgodo!steve From: steve@jplgodo.UUCP (Steve Schlaifer x3171 156/224) Newsgroups: net.bugs Subject: Re: awk accepts but blows unary negation Message-ID: <741@jplgodo.UUCP> Date: Tue, 18-Mar-86 13:16:03 EST Article-I.D.: jplgodo.741 Posted: Tue Mar 18 13:16:03 1986 Date-Received: Sat, 22-Mar-86 05:10:32 EST References: <179@desint.UUCP> Organization: Jet Propulsion Labs, Pasadena, CA Lines: 19 Summary: works OK here