vcs

  • Status Closed
  • Percent Complete
    100%
  • Task Type Bug Report
  • Category General
  • Assigned To
    outlyer
  • Operating System
  • Severity High
  • Priority Very Low
  • Reported Version 1.11.1
  • Due in Version 1.11.2
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: vcs
Opened by outlyer - 13.03.2010
Last edited by outlyer - 19.03.2010

FS#135 - Pythagorean theorem uses gawk syntax

pyth_th() uses **, accepted by gawk but not mawk

Also Ubuntu uses mawk by default.

Closed by  outlyer
19.03.2010 00:23
Reason for closing:  Fixed
Additional comments about closing:  

Fixed in 1.11.2

Admin

Patch:

--- /usr/bin/vcs	2010-03-11 13:40:57.000000000 +0100
+++ vcs.fixed	2010-03-13 20:33:49.593720287 +0100
@@ -771,7 +771,7 @@
 # Applies the Pythagorean Theorem
 # pyth_th($1 = cathetus1, $2 = cathetus2)
 pyth_th() {
-	awkex "sqrt($1 ** 2 + $2 ** 2)"
+	awkex "sqrt($1 ^ 2 + $2 ^ 2)"
 }
 
 # Prints the width correspoding to the input height and the variable

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing