forked from lh3/bioawk
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request lh3#31 from arnoldrobbins/master
Make getline handle numeric strings, and update FIXES
- Loading branch information
Showing
9 changed files
with
45 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
2019-01-26 Arnold D. Robbins <[email protected]> | ||
|
||
* main.c (version): Updated. | ||
|
||
2019-01-25 Arnold D. Robbins <[email protected]> | ||
|
||
* run.c (awkgetline): Check for numeric value in all getline | ||
variants. See the numeric-getline.* files in bugs-fixed directory. | ||
|
||
2018-08-29 Arnold D. Robbins <[email protected]> | ||
|
||
* REGRESS: Check for existence of a.out. If not there, run | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,4 +51,7 @@ array passed as the second argument, then split() would previously read | |
from the freed memory and possibly produce incorrect results (depending | ||
on the system's malloc()/free() behaviour.) | ||
|
||
|
||
15. getline-numeric: The `getline xx < file' syntax did not check if | ||
values were numeric, in discordance from POSIX. Test case adapted from | ||
one posted by Ben Bacarisse <[email protected]> in comp.lang.awk, | ||
January 2019. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
print $0, ($0 <= 50 ? "<=" : ">"), 50 | ||
getline dd < ARGV[1] | ||
print dd, (dd <= 50 ? "<=" : ">"), 50 | ||
if (dd == $0) print "same" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
120 > 50 | ||
120 <= 50 | ||
same |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
120 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
120 > 50 | ||
120 > 50 | ||
same |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters