-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: Comparison of zero to uninitialized variable returns true, and handling of long integers #13
Comments
I will shoot another PR for this. Thanks! |
Hmm. Interesting.
What do you regard as the official AWK?
+CDR
…On Feb 2, 2018 6:43 PM, "Bertrand Martin" ***@***.***> wrote:
The below script Awk prints "wrong":
// { a = 0 ; if (a == "") { print "wrong" } else { print "right" } }
Also, integer numbers greater than 2^31 are treated as Double, and output
with a pseudo-scientific notation (3.45789E+9), which is not the behavior
of the "official" awk.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#13>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADAU9IaCT1ODhG6GrBagmX3c6XBgEPxpks5tQ52WgaJpZM4R37Lo>
.
|
Good question! ;-) What I consider as one official AWK, is GNU AWK: But I don't want to enter a political debate over AWK :-D |
I agree. Gawk is well done. It is a proper superset of the Bell Labs
version and the convenience functions that they added.
I would like to eventually see Jawk with those same extensions as long as
the core Bell Labs compliant, if I can use that as a standard.
+CDR
…On Feb 3, 2018 6:58 AM, "Bertrand Martin" ***@***.***> wrote:
Good question! ;-) What I consider as *one* official AWK, is GNU AWK:
https://www.gnu.org/software/gawk/manual/html_node/Strings-
And-Numbers.html
But I don't want to enter a political debate over AWK :-D
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#13 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ADAU9AkkrpKeiReb2zhweOs1SsxqwRhrks5tREnNgaJpZM4R37Lo>
.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The below script Awk prints "wrong":
Also, integer numbers greater than 2^31 are treated as Double, and output with a pseudo-scientific notation (3.45789E+9), which is not the behavior of the "official" awk.
The text was updated successfully, but these errors were encountered: