| 1 |
2025-04-05 Timothy Rice <[email protected]> |
| 2 |
|
| 3 |
version 1.9 |
| 4 |
* NEWS: Record release date. |
| 5 |
|
| 6 |
2025-03-29 Timothy Rice <[email protected]> |
| 7 |
|
| 8 |
Make various changes suggested by make syntax-check |
| 9 |
- Add copyright notice to README |
| 10 |
- Ensure README refers to COPYING and INSTALL |
| 11 |
- #include "error.h" -> #include <error.h> |
| 12 |
- Use GNU link instead of postal address |
| 13 |
- Portability: Grep: use "> /dev/null" instead of "-q" |
| 14 |
- Break a long line |
| 15 |
|
| 16 |
gnulib: update to latest |
| 17 |
|
| 18 |
2025-03-22 Timothy Rice <[email protected]> |
| 19 |
|
| 20 |
m4: Update gitignore for latest gnulib |
| 21 |
|
| 22 |
gnulib: update to latest |
| 23 |
|
| 24 |
cfg.mk: Set UPDATE_COPYRIGHT_HOLDER to myself |
| 25 |
This data is consumed by `make update-copyright`, so it should be set to |
| 26 |
whoever's copyright notice will be updated to the latest year. |
| 27 |
|
| 28 |
Add myself to a bunch of copyright notices |
| 29 |
|
| 30 |
Put NEWS in correct format for do-release-commit-and-tag |
| 31 |
|
| 32 |
2025-03-22 Timothy Rice <[email protected]> |
| 33 |
|
| 34 |
Revert "rand: Add new program" |
| 35 |
This reverts commit 0ed0482e4fb05c99ed6fdf6d3c20864cbe61acfd. |
| 36 |
|
| 37 |
Adding rand(1) seemed desirable from the point of view of wanting a way |
| 38 |
to benchmark datamash(1). However, a comprehensive pseudorandom number |
| 39 |
generation engine would requires a non-trivial amount of statistical |
| 40 |
library support. There is currently little maintainer will for such |
| 41 |
effort. |
| 42 |
|
| 43 |
We can "double-revert" in future if there is interest, but for the |
| 44 |
moment it seems cleanest to not have rand(1) enter the upcoming stable |
| 45 |
release 1.9. |
| 46 |
|
| 47 |
2025-01-28 Georg Sauthoff <[email protected]> |
| 48 |
|
| 49 |
improve const correctness |
| 50 |
|
| 51 |
2025-01-28 Georg Sauthoff <[email protected]> |
| 52 |
|
| 53 |
datamash: decrease visibility of local symbols |
| 54 |
i.e. symbols that are only used inside their translation unit and don't |
| 55 |
have a prototype declaration in a header should be hidden with static. |
| 56 |
|
| 57 |
the main motiviation behind such a change basically is: |
| 58 |
|
| 59 |
1) minimize the likelihood of possible (future) symbol clashes between |
| 60 |
different translation units or libraries |
| 61 |
2) speed up linking |
| 62 |
3) eliminate noise when using `-Wmissing-prototypes`, i.e. if your local |
| 63 |
symbols are 'clean', then all remaining missing-prototypes warnings |
| 64 |
point to missing includes or obsolete functions |
| 65 |
|
| 66 |
Note that a global symbol definition that shadows another doesn't necessarily |
| 67 |
yield a link error, in general. |
| 68 |
|
| 69 |
And even in the constellations where it does, for fixing, it's way more |
| 70 |
convenient to get a compile error, instead. |
| 71 |
|
| 72 |
Dima Kogan also added in the email discussion: |
| 73 |
|
| 74 |
Keeping your symbols localized is general good hygiene, and has even |
| 75 |
more upsides: |
| 76 |
|
| 77 |
- The robot reader of the code (the compiler) gains a higher level of |
| 78 |
understanding: it gets knowledge of the FULL list of callers of such a |
| 79 |
function, and is free to make deep optimizations, like inlining the |
| 80 |
function |
| 81 |
|
| 82 |
- The human reader of the code also gains a higher level of |
| 83 |
understanding. With local functions I also know about exactly what |
| 84 |
paths are possible for calling them by simply doing a text search in |
| 85 |
one file. |
| 86 |
|
| 87 |
Relatedly, the linker visibility settings are controllable also (gcc |
| 88 |
-fvisibility or attribute((visibility))), but that's important for |
| 89 |
shared libraries, and less so for executables. |
| 90 |
|
| 91 |
2025-01-27 Georg Sauthoff <[email protected]> |
| 92 |
|
| 93 |
datamash: add missing include for validate_double_format |
| 94 |
Inconsistencies with prototypes yield a compile error |
| 95 |
|
| 96 |
2025-01-25 Timothy Rice <[email protected]> |
| 97 |
|
| 98 |
AUTHORS: Add Georg Sauthoff |
| 99 |
|
| 100 |
2025-01-25 Georg Sauthoff <[email protected]> |
| 101 |
|
| 102 |
datamash: Add explicit arguments to crosstab_print prototype |
| 103 |
In C23, a prototype like `crosstab_print ()` implies that the function |
| 104 |
will take no arguments. This conflicts with the definition |
| 105 |
`crosstab_print (const struct crosstab* ct)`. |
| 106 |
|
| 107 |
We can demonstrate the issue by running: |
| 108 |
|
| 109 |
$ CFLAGS+="-std=c2x" ./configure && make |
| 110 |
|
| 111 |
That resulted in the following error: |
| 112 |
|
| 113 |
> src/crosstab.c:152:1: error: conflicting types for 'crosstab_print'; have 'void(const struct crosstab *)' |
| 114 |
> 152 | crosstab_print (const struct crosstab* ct) |
| 115 |
> | ^~~~~~~~~~~~~~ |
| 116 |
> In file included from src/crosstab.c:34: |
| 117 |
> src/crosstab.h:50:1: note: previous declaration of 'crosstab_print' with type 'void(void)' |
| 118 |
> 50 | crosstab_print (); |
| 119 |
> | ^~~~~~~~~~~~~~ |
| 120 |
|
| 121 |
2025-01-25 Timothy Rice <[email protected]> |
| 122 |
|
| 123 |
datamash: Address pure attribute error |
| 124 |
|
| 125 |
2023-12-18 Erik Auerswald <[email protected]> |
| 126 |
|
| 127 |
datamash: keep "getnum" operation inside fields |
| 128 |
Before, the "getnum" operation could scan into adjacent fields, |
| 129 |
because it used string operations on fields terminated by a |
| 130 |
field separator, not a NUL byte. |
| 131 |
|
| 132 |
* NEWS: Mention bug fix. |
| 133 |
* src/utils.c (extract_number): Copy field contents to |
| 134 |
NUL-terminated string to ensure string operations stay |
| 135 |
inside the field. |
| 136 |
* tests/datamash-tests-2.pl: Add new, and activate existing, |
| 137 |
tests for the corrected "getnum" behavior. |
| 138 |
* tests/datamash-vnlog.pl: Add new tests for the corrected |
| 139 |
"getnum" behavior. |
| 140 |
|
| 141 |
2023-12-17 Erik Auerswald <[email protected]> |
| 142 |
|
| 143 |
datamash: bug fix for decimal sep. as field sep. |
| 144 |
When the locale's decimal separator is used as field separator, |
| 145 |
reading a numeric value would continue over the field separator, |
| 146 |
resulting in an "invalid numeric value" error message. This is |
| 147 |
now prevented by re-trying to read the numeric value after the |
| 148 |
field contents have been copied to a NUL-terminated buffer. |
| 149 |
|
| 150 |
* NEWS: Mention bug fix. |
| 151 |
* THANKS: Add bug reporters. |
| 152 |
* src/field-ops.c (field_op_collect): If strtold reads past the |
| 153 |
field contents, copy field contents to temporary buffer and |
| 154 |
try strtold again. |
| 155 |
* tests/datamash-i18n-de.pl: Activate two previously failing |
| 156 |
tests, and add a test case from the recent bug report. |
| 157 |
* tests/datamash-tests-2.pl: Activate two previously failing |
| 158 |
tests. |
| 159 |
|
| 160 |
2023-12-11 Erik Auerswald <[email protected]> |
| 161 |
|
| 162 |
maint: fix "make syntax-check" errors |
| 163 |
* cfg.mk: Except file doc/fdl.texi from line length check. |
| 164 |
* src/utils.c (update_best_seq): Add space before opening parenthesis. |
| 165 |
|
| 166 |
2023-12-10 Erik Auerswald <[email protected]> |
| 167 |
|
| 168 |
tweak NEWS entry for datamash antimode bug fix |
| 169 |
A "set of numbers" implies that no number is repeated. Both |
| 170 |
the mode and antimode operations look at repeated numbers. |
| 171 |
Thus use "sequence" instead of "set" in the description. |
| 172 |
|
| 173 |
* NEWS: Replace "set" with "sequence" in latest bug fix entry. |
| 174 |
|
| 175 |
2023-12-10 Erik Auerswald <[email protected]> |
| 176 |
|
| 177 |
datamash: fix "antimode" operation |
| 178 |
Both "mode" and "antimode" operations are implemented in the same |
| 179 |
function "mode_value()" in file "src/utils.c". The algorithm |
| 180 |
traverses a list of sequences of numbers and attempts to remember |
| 181 |
the longest (for mode) or shortest (for antimode). |
| 182 |
|
| 183 |
Before, the sequence information was updated for every new number |
| 184 |
encountered, i.e., in general before the actual sequence length |
| 185 |
was known. This approach works for mode, but not for antimode. |
| 186 |
|
| 187 |
Now, the sequence information is updated only after a sequence |
| 188 |
has ended. There are two ways a sequence can end: (1) a different |
| 189 |
number is read, (2) there are no more numbers to read. In both |
| 190 |
cases, this new sequence information (length and value) needs |
| 191 |
to be checked against the previous longest/shortest length and |
| 192 |
possibly updated. |
| 193 |
|
| 194 |
* NEWS: Mention bug fix. |
| 195 |
* src/utils.c (mode_value): Update best sequence information only |
| 196 |
after end of sequence. Move update code to new function, because |
| 197 |
it is now used twice. |
| 198 |
(update_best_seq): New function. |
| 199 |
* tests/datamash-tests-2.pl: Activate formerly broken now working |
| 200 |
"antimode" tests. |
| 201 |
|
| 202 |
2023-12-10 Erik Auerswald <[email protected]> |
| 203 |
|
| 204 |
datamash: new "mode" and inactive "antimode" test |
| 205 |
* tests/datamash-tests-2.pl: Add new test for both "mode" and "antimode". |
| 206 |
The "antimode" test currently fails and is commented out. |
| 207 |
|
| 208 |
2023-12-09 Erik Auerswald <[email protected]> |
| 209 |
|
| 210 |
datamash: four more "mode" and "antimode" tests |
| 211 |
* tests/datamash-tests-2.pl: Duplicate regression test for "mode" |
| 212 |
to also test "antimode". Add normal test with single input value |
| 213 |
to both operations. |
| 214 |
|
| 215 |
2023-12-08 Erik Auerswald <[email protected]> |
| 216 |
|
| 217 |
datamash: more "mode" and "antimode" tests |
| 218 |
Kingsley G. Morse Jr. has reported a bug regarding the |
| 219 |
"antimode" operation in |
| 220 |
<https://lists.gnu.org/archive/html/bug-datamash/2023-12/msg00003.html>. |
| 221 |
|
| 222 |
Both the "mode" and "antimode" operations are implemented |
| 223 |
in the function "mode_value()" in the file "src/utils.c". |
| 224 |
|
| 225 |
Currently, there are only a few tests for each of the two |
| 226 |
operations. Add more tests to have working examples. |
| 227 |
Also add commented out tests that trigger "antimode" bugs. |
| 228 |
|
| 229 |
* tests/datamash-tests-2.pl: Add 11 tests for "mode", 11 |
| 230 |
working tests for "antimode", and 5 commented out tests |
| 231 |
for "antimode" that are currently broken. |
| 232 |
|
| 233 |
2022-11-07 Shawn Wagner <[email protected]> |
| 234 |
|
| 235 |
Remove obsolete autoconf AC_PROG_CC_STDC macro |
| 236 |
* configure.ac: Remove AC_PROG_CC_STDC |
| 237 |
|
| 238 |
Remove deprecated gnulib fdl module |
| 239 |
* bootstrap.conf: Remove fdl from the module list |
| 240 |
* doc/fdl.texi: Explicitly include instead of relying on gnulib to |
| 241 |
generate it. |
| 242 |
|
| 243 |
Remove deprecated gnulib non-recursive-gnulib-prefix-hack module |
| 244 |
* Makefile.am: Add AUTOMAKE_OPTIONS needed for the new approach |
| 245 |
* bootstrap.conf: Remove old module, enable suggested replacement for it. |
| 246 |
* m4/.gitignore: Update for removed module |
| 247 |
|
| 248 |
Update bootstrap notes for OpenBSD. |
| 249 |
* HACKING.md: Updates for OpenBSD 7.2, related typo fixes. |
| 250 |
|
| 251 |
2022-11-07 Shawn Wagner <[email protected]> |
| 252 |
|
| 253 |
Add gnulib checks for sys/random.h and getrandom(). |
| 254 |
Needed to compile rand on non-GNU OSes. |
| 255 |
|
| 256 |
* Makefile.am: Add $(LIB_GETRANDOM) to rand libraries |
| 257 |
* bootstrap.conf: Add getrandom and sys_random modules |
| 258 |
* m4/.gitignore: Updates for the new modules |
| 259 |
|
| 260 |
2022-09-03 Erik Auerswald <[email protected]> |
| 261 |
|
| 262 |
datamash: more --vnlog tests (legend corner cases) |
| 263 |
The vnlog format is quite permissive regarding field names. |
| 264 |
Field names can comprise non-alphanumeric characters, and |
| 265 |
field names may be duplicated. Add tests to check that GNU |
| 266 |
Datamash can handle (at least some) such vnlog input. |
| 267 |
|
| 268 |
The test with a duplicate field name is intended to help avoid |
| 269 |
accidental changes to GNU Datamash behavior, not to prescribe |
| 270 |
that the first matching field name should be used. |
| 271 |
|
| 272 |
* tests/datamash-vnlog.pl: Add two tests, the first with non- |
| 273 |
alphanumeric characters, the second with a duplicate field |
| 274 |
name. |
| 275 |
|
| 276 |
2022-08-27 Erik Auerswald <[email protected]> |
| 277 |
|
| 278 |
datamash: --vnlog "legend" parsing fixes |
| 279 |
* src/text-lines.c (line_record_fread): Skip prefix matching |
| 280 |
regex '^\s*#\s*' instead of regex '^[\s#]+'. |
| 281 |
* tests/datamash-vnlog.pl: Additional vnlog legend tests. |
| 282 |
|
| 283 |
2022-08-17 Shawn Wagner <[email protected]> |
| 284 |
|
| 285 |
Make -g and groupby take ranges of fields. |
| 286 |
So that 1-4 works instead of needin |
| 287 |
|
| 288 |
* src/op-parser.c: Accept ranges for -g and groupby |
| 289 |
* tests/datamash-tests.pl, datamash-error-msgs.pl, datamash-crosstab.pl: |
| 290 |
Some tests for the above. |
| 291 |
* doc/datamash.text: Document the above. |
| 292 |
* NEWS: Changelog entry. |
| 293 |
|
| 294 |
2022-08-17 Timothy Rice <[email protected]> |
| 295 |
|
| 296 |
rand: Add new program |
| 297 |
|
| 298 |
2022-08-14 Erik Auerswald <[email protected]> |
| 299 |
|
| 300 |
docs: adjust damatash --vnlog texinfo description |
| 301 |
* doc/datamash.texi: Add that both input and output are affected. |
| 302 |
Mark the link to the format description as a URL. |
| 303 |
|
| 304 |
2022-08-13 Erik Auerswald <[email protected]> |
| 305 |
|
| 306 |
tests: comments and empty lines |
| 307 |
Without any options, GNU Datamash does not support comments, |
| 308 |
and does not treat empty lines as different from any other |
| 309 |
line. |
| 310 |
|
| 311 |
With -C/--skip-comments, it ignores complete lines starting |
| 312 |
with either '#' or ';' as first non-whitespace character. |
| 313 |
|
| 314 |
With --vnlog, it ignores empty lines, complete lines where the |
| 315 |
first non-whitespace character is a '#' (followed by either |
| 316 |
'!' or '#' in the vnlog prologue), and trailing comments, |
| 317 |
i.e., the part of a non-empty, non-comment, and non-header |
| 318 |
line started with optional whitespace and a '#' character. |
| 319 |
|
| 320 |
* tests/datamash-check.pl: Add tests with empty and comment |
| 321 |
lines in the input with different options. |
| 322 |
* tests/datamash-vnlog.pl: Add trailing comment started with |
| 323 |
whitespace to existing input. Add test to verify that a |
| 324 |
Semicolon (';') does not start a trailing comment. Add a |
| 325 |
test that the header line does not support comments. |
| 326 |
|
| 327 |
2022-08-13 Timothy Rice <[email protected]> |
| 328 |
|
| 329 |
maint: Add vnlog to bash completion |
| 330 |
|
| 331 |
maint: Add Dima Kogan to AUTHORS/THANKS files |
| 332 |
|
| 333 |
2022-08-13 Dima Kogan <[email protected]> |
| 334 |
|
| 335 |
Add vnlog support |
| 336 |
Dima Kogan's vnlog data format is explained at |
| 337 |
https://github.com/dkogan/vnlog |
| 338 |
|
| 339 |
This support is experimental in GNU Datamash. |
| 340 |
|
| 341 |
2022-08-08 Timothy Rice <[email protected]> |
| 342 |
|
| 343 |
maint: Tidy up NEWS item for dotprod |
| 344 |
|
| 345 |
datamash: add new option -S/--seed to set random seed |
| 346 |
|
| 347 |
2022-08-07 Erik Auerswald <[email protected]> |
| 348 |
|
| 349 |
tests: datamash -C has no inline comments |
| 350 |
* tests/datamash-tests-2.pl: Add two tests for errors when |
| 351 |
trying to use inline comments. |
| 352 |
|
| 353 |
maint: wrap two lines to make syntax-check happy |
| 354 |
|
| 355 |
2022-08-07 Timothy Rice <[email protected]> |
| 356 |
|
| 357 |
maint: Fix small typo 'data' -> 'date' in NEWS |
| 358 |
|
| 359 |
datamash: new operation: dotprod |
| 360 |
|
| 361 |
2022-08-06 Timothy Rice <[email protected]> |
| 362 |
|
| 363 |
Add NEWS item for getrandom change |
| 364 |
|
| 365 |
Switch to getrandom for seed source |
| 366 |
|
| 367 |
Move init_random function into new randutils source |
| 368 |
|
| 369 |
2022-08-06 Timothy Rice <[email protected]> |
| 370 |
|
| 371 |
Remove sc_indent from syntax checks |
| 372 |
The sc_indent check was added to gnulib in 8f043c6 on 2021-09-03. By default it |
| 373 |
forces code to conform to `indent -ppi 1`. This contradicts the list of format |
| 374 |
constraints suggested at [1], in particular the GNU preference of having |
| 375 |
two spaces for each indent level. |
| 376 |
|
| 377 |
[1] https://www.gnu.org/prep/standards/standards.html#Formatting |
| 378 |
|
| 379 |
2022-08-06 Timothy Rice <[email protected]> |
| 380 |
|
| 381 |
datamash, decorate: add -h/-V for --help/--version |
| 382 |
|
| 383 |
maint: Fix typo 'syntaax' |
| 384 |
|
| 385 |
2022-08-03 Timothy Rice <[email protected]> |
| 386 |
|
| 387 |
Update gnulib to latest |
| 388 |
Includes changing or casting a couple of size_t variables/outputs to idx_t. |
| 389 |
|
| 390 |
2022-07-23 Timothy Rice <[email protected]> |
| 391 |
|
| 392 |
maint: Ignore vc-diffs |
| 393 |
|
| 394 |
2022-07-23 Timothy Rice <[email protected]> |
| 395 |
|
| 396 |
maint: post-release administrivia |
| 397 |
Automatically done by `make release RELEASE='1.8 stable'` |
| 398 |
|
| 399 |
* NEWS: Add header line for next release. |
| 400 |
* .prev-version: Record previous version. |
| 401 |
* cfg.mk (old_NEWS_hash): Auto-update. |
| 402 |
|
| 403 |
2022-07-23 Timothy Rice <[email protected]> |
| 404 |
|
| 405 |
version 1.8 |
| 406 |
* NEWS: Record release date. |
| 407 |
|
| 408 |
2022-07-17 Erik Auerswald <[email protected]> |
| 409 |
|
| 410 |
datamash: tests: decimal point as field separator |
| 411 |
* tests/datamash-tests-2.pl: Add a commented out test for the |
| 412 |
"getnum" operation with a decimal point as field separator. |
| 413 |
Adjust alignment of two existing commented out tests. |
| 414 |
|
| 415 |
2022-07-17 Erik Auerswald <[email protected]> |
| 416 |
|
| 417 |
datamash: tests: commented out getnum i18n tests |
| 418 |
The "getnum" operation is neither properly locale-aware nor does |
| 419 |
it ignore the locale setting. As a result floating point numbers |
| 420 |
are not extracted correctly unless the locale-specific decimal |
| 421 |
separator is a period. |
| 422 |
|
| 423 |
* tests/datamash-i18n-de.pl: Add commented out getnum tests. |
| 424 |
|
| 425 |
2022-07-17 Erik Auerswald <[email protected]> |
| 426 |
|
| 427 |
tests: numbers with two decimal points in input |
| 428 |
* tests/datamash-error-msgs.pl: Add tests for error message when |
| 429 |
a number with two decimal points is given as input data. |
| 430 |
|
| 431 |
tests: decimal separator as field separator |
| 432 |
* tests/datamash-i18n-de.pl: Add tests using the locale's decimal |
| 433 |
separator (a comma) as field separator. |
| 434 |
* tests/datamash-tests-2.pl: Add tests using the locale's decimal |
| 435 |
separator (a period) as field separator. |
| 436 |
|
| 437 |
tests: adjust commented out i18n test |
| 438 |
* tests/datamash-i18n-de.pl: Use a unique ID to allow commenting |
| 439 |
in without further adjustments. Align test definition fields. |
| 440 |
|
| 441 |
maint: regression test consolidation |
| 442 |
* tests/datamash-tests-2.pl: Move regression tests to have them |
| 443 |
next to each other in one group. |
| 444 |
|
| 445 |
2022-07-11 Timothy Rice <[email protected]> |
| 446 |
|
| 447 |
datamash: tests: Add test for crosstab with header-in, no header-out |
| 448 |
|
| 449 |
datamash: tests: Rename c3 header-in test for pcov consistent with scov |
| 450 |
|
| 451 |
datamash: tests: Add more paired-param tests with header in/out |
| 452 |
|
| 453 |
docs: Note non-standard --header-out with crosstab |
| 454 |
|
| 455 |
docs: Remove sentence about groupby/crosstab not understanding header names. |
| 456 |
|
| 457 |
2022-07-09 Timothy Rice <[email protected]> |
| 458 |
|
| 459 |
datamash: maint: Fix some indentation |
| 460 |
|
| 461 |
datamash: bugfix: Ensure rmdup respects --output-delimiter |
| 462 |
Fixes bug reported by Dima Kogan. |
| 463 |
|
| 464 |
datamash: bugfix: Allow crosstab to be called by header field name. |
| 465 |
Ensure `--header-in crosstab x,y` does not crash. |
| 466 |
Fixes bug reported by Dima Kogan. |
| 467 |
|
| 468 |
datamash: maint: fix long line |
| 469 |
|
| 470 |
maint: ignore side effects of make syntax-check |
| 471 |
|
| 472 |
maint: Fix minor typo |
| 473 |
|
| 474 |
datamash: maint: Add debug helper macro WHEREAMI() |
| 475 |
|
| 476 |
tests: Add the test for pcov header in/out |
| 477 |
|
| 478 |
datamash: Print all operation columns in output header |
| 479 |
Ensure `--header-out pcov x:y` shows `pcov(x,y)` in header. |
| 480 |
Fixes bug reported by Dima Kogan. |
| 481 |
|
| 482 |
2022-07-05 Timothy Rice <[email protected]> |
| 483 |
|
| 484 |
maint: Break long lines |
| 485 |
|
| 486 |
maint: Update version notices. |
| 487 |
|
| 488 |
2022-07-04 Erik Auerswald <[email protected]> |
| 489 |
|
| 490 |
maint: align datamash binning tests |
| 491 |
* tests/datamash-tests-2.pl: Align binning tests. |
| 492 |
|
| 493 |
2022-07-04 Erik Auerswald <[email protected]> |
| 494 |
|
| 495 |
tests: more datamash binning tests |
| 496 |
Floating point numbers as operation parameters can be specified |
| 497 |
using scientific notation (e.g., 1.2e3 for 1200.0). |
| 498 |
|
| 499 |
* tests/datamash-tests-2.pl: Add scientific notation bin sizes. |
| 500 |
|
| 501 |
2022-07-04 Erik Auerswald <[email protected]> |
| 502 |
|
| 503 |
tests: test parser corner cases |
| 504 |
Add tests of corner cases regarding whitespace in the operation |
| 505 |
parsing of GNU Datamash in order to avoid introducing unintended |
| 506 |
changes of behavior. |
| 507 |
|
| 508 |
* tests/datamash-parser.pl: Add tests with additional whitespace. |
| 509 |
|
| 510 |
2022-07-03 Erik Auerswald <[email protected]> |
| 511 |
|
| 512 |
tests: add more datamash parser tests |
| 513 |
* tests/datamash-parser.pl: Additional testing of correct and |
| 514 |
incorrect use of optional operation parameters. |
| 515 |
|
| 516 |
2022-07-03 Erik Auerswald <[email protected]> |
| 517 |
|
| 518 |
maint: more unique test identifiers for datamash |
| 519 |
Having unique test identifiers helps in locating the problems |
| 520 |
with test failures. It seems as if the intention is to have |
| 521 |
unique test identifiers, at least per tested binary. Fix a |
| 522 |
case of duplicated test identifiers in the two test files |
| 523 |
datamash-tests.pl and datamash-parser.pl for binning related |
| 524 |
test cases. |
| 525 |
|
| 526 |
* tests/datamash-parser.pl: Rename test identifier 'b1' to '31' |
| 527 |
and 'b2' to 'b32'. |
| 528 |
|
| 529 |
2022-06-26 Erik Auerswald <[email protected]> |
| 530 |
|
| 531 |
tests: add third datamash i18n test case |
| 532 |
Depending on tokenizer changes to support comma as decimal |
| 533 |
separator, three comma separated fields might trigger a |
| 534 |
problem that is avoided with two comma separated fields. |
| 535 |
|
| 536 |
* tests/datamash-i18n-de.pl: Add test case with three fields |
| 537 |
separated with commas. |
| 538 |
|
| 539 |
2022-06-26 Erik Auerswald <[email protected]> |
| 540 |
|
| 541 |
tests: avoid Perl warning in datamash-i18n-de.pl |
| 542 |
The string comparison `$lc_de eq undef` results in up to two |
| 543 |
warnings. If `$lc_de` is defined, the single warning |
| 544 |
|
| 545 |
Use of uninitialized value in string eq at |
| 546 |
./tests/datamash-i18n-de.pl line 39. |
| 547 |
|
| 548 |
is emitted. This is caused by comparing with `undef` in the |
| 549 |
string equality test `eq`. |
| 550 |
|
| 551 |
If the locale `de_DE.utf8` is not found, `$lc_de` is undefined. |
| 552 |
If `$lc_de` is undefined, two warnings are emitted: |
| 553 |
|
| 554 |
Use of uninitialized value $lc_de in string eq at |
| 555 |
./tests/datamash-i18n-de.pl line 39. |
| 556 |
|
| 557 |
Use of uninitialized value in string eq at |
| 558 |
./tests/datamash-i18n-de.pl line 39. |
| 559 |
|
| 560 |
Using `defined()` to test if `$lc_de` is defined avoids this. |
| 561 |
|
| 562 |
* tests/datamash-i18n-de.pl: Use defined() to check if a |
| 563 |
variable is defined. |
| 564 |
|
| 565 |
2022-06-26 Erik Auerswald <[email protected]> |
| 566 |
|
| 567 |
tests: add second datamash i18n test case |
| 568 |
Supporting a comma as decimal separator for numeric arguments |
| 569 |
to GNU Datamash operations risks confusing a comma separated |
| 570 |
list of fields with a floating point number. |
| 571 |
|
| 572 |
* tests/datamash-i18n-de.pl: Add test case with a comma |
| 573 |
separated list of field numbers. |
| 574 |
|
| 575 |
2022-06-25 Erik Auerswald <[email protected]> |
| 576 |
|
| 577 |
maint: fix a typo in a comment |
| 578 |
|
| 579 |
2022-06-25 Timothy Rice <[email protected]> |
| 580 |
|
| 581 |
maint: Remove incorrect comment about LC_NUMERIC |
| 582 |
|
| 583 |
maint: Skip German test if de_DE.utf8 locale not found |
| 584 |
|
| 585 |
Test decimal separator in de_DE.UTF-8 locale |
| 586 |
|
| 587 |
2022-06-25 Shawn Wagner <[email protected]> |
| 588 |
|
| 589 |
src/decorate.c: Fix a NetBSD-specific seg fault. |
| 590 |
|
| 591 |
2022-06-24 Erik Auerswald <[email protected]> |
| 592 |
|
| 593 |
datamash: re-write binning for negative numbers |
| 594 |
Make the binning code more explicit regarding handling of |
| 595 |
negative binning values: |
| 596 |
|
| 597 |
- changing a negative zero into a positive zero can only |
| 598 |
be needed for negative values; |
| 599 |
- if the fractional part of a negative value is zero: |
| 600 |
- the number is the lower bound of the bucket interval, |
| 601 |
- and the number could be a negative zero; |
| 602 |
- if the fractional part of a negative value is non-zero: |
| 603 |
- the number falls into the preceding bucket interval. |
| 604 |
|
| 605 |
When testing with both negative and non-negative numbers, |
| 606 |
the new code was not slower. It even seemed to be a tiny |
| 607 |
bit faster on average. |
| 608 |
|
| 609 |
* src/field-ops.c (field_op_collect): re-write binning code |
| 610 |
for negative numbers. |
| 611 |
|
| 612 |
2022-06-23 Timothy Rice <[email protected]> |
| 613 |
|
| 614 |
datamash: Fix binning of negative numbers. |
| 615 |
|
| 616 |
2022-06-18 Shawn Wagner <[email protected]> |
| 617 |
|
| 618 |
Add framework for installing hooks into cloned git repositories. |
| 619 |
Includes a pre-commit hook that runs make syntax-check |
| 620 |
|
| 621 |
2022-06-18 Timothy Rice <[email protected]> |
| 622 |
|
| 623 |
maint: Convert sort+header tests from shell to perl |
| 624 |
|
| 625 |
maint: fix long lines |
| 626 |
|
| 627 |
maint: Make test indentation more consistent |
| 628 |
|
| 629 |
maint: fix long lines |
| 630 |
|
| 631 |
2022-06-17 Timothy Rice <[email protected]> |
| 632 |
|
| 633 |
Rename deprecated tests |
| 634 |
|
| 635 |
Deprecate -f/--full for non-linewise operations |
| 636 |
|
| 637 |
2022-06-12 Erik Auerswald <[email protected]> |
| 638 |
|
| 639 |
tests: add cheap I/O error test |
| 640 |
The existing tests/datamash-io-errors.sh is marked as expensive |
| 641 |
and requires two file system images prepared to provoke I/O |
| 642 |
errors for GNU Datamash to detect and report. As a result it |
| 643 |
is executed less frequently than most other tests. |
| 644 |
|
| 645 |
The new tests/datamash-io-errors-cheap.sh requires just the |
| 646 |
availability of the special file "/dev/full" to immediately |
| 647 |
provoke an I/O error on output. This test requires minimal |
| 648 |
input data and is cheap to run. |
| 649 |
|
| 650 |
* Makefile.am (TESTS): Add new test file. |
| 651 |
* tests/datamash-io-errors-cheap.sh: New file with one test. |
| 652 |
|
| 653 |
2022-06-07 Erik Auerswald <[email protected]> |
| 654 |
|
| 655 |
datamash: fix segmentation fault |
| 656 |
As reported by Catalin Patulea on [email protected] in |
| 657 |
<https://lists.gnu.org/archive/html/bug-datamash/2020-11/msg00001.html>, |
| 658 |
GNU Datamash could crash with a segmentation fault if the |
| 659 |
unique or countunique operations were used with input data |
| 660 |
containing NUL bytes. |
| 661 |
|
| 662 |
The problem was that the field_op_get_string_ptrs() function |
| 663 |
could create more pointers than it allocated memory for if |
| 664 |
the input data contained NUL bytes. The solution is to add a |
| 665 |
check to avoid writing past the end of the "ptrs" buffer. |
| 666 |
|
| 667 |
* NEWS: Mention bug fix. |
| 668 |
* src/field-ops.c (field_op_get_string_ptrs): Do not write past |
| 669 |
the end of the "ptrs" buffer. |
| 670 |
* tests/datamash-tests-2.pl: Add tests to verify bug fix. |
| 671 |
|
| 672 |
2022-06-06 Erik Auerswald <[email protected]> |
| 673 |
|
| 674 |
doc: mention ms and rms in --help and man page |
| 675 |
The recent operations ms (mean square) and rms (root mean |
| 676 |
square) are listed only in the texinfo manual. Add them |
| 677 |
to both the 'datamash --help' output and the datamash(1) |
| 678 |
man page. |
| 679 |
|
| 680 |
* src/datamash.c (usage): Add ms and rms to Statistical |
| 681 |
Grouping operations. |
| 682 |
* man/datamash.x: Likewise. |
| 683 |
|
| 684 |
2022-06-05 Erik Auerswald <[email protected]> |
| 685 |
|
| 686 |
tests: more leading and trailing whitespace tests |
| 687 |
* tests/datamash-tests.pl: Add tests with leading whitespace, |
| 688 |
trailing whitespace, and both leading and trailing whitespace. |
| 689 |
|
| 690 |
tests: leading and trailing whitespace behavior |
| 691 |
* tests/datamash-tests.pl: Add whitespace-only tests. |
| 692 |
|
| 693 |
doc: texinfo manual adjustments |
| 694 |
* doc/datamash.texi: Mention that "cut" operation uses given field |
| 695 |
ordering. Expand on leading and trailing whitespace description. |
| 696 |
Ask for unified instead of context diff. |
| 697 |
|
| 698 |
2022-06-04 Erik Auerswald <[email protected]> |
| 699 |
|
| 700 |
maint: fix "make syntax-check" errors |
| 701 |
* .gitignore: Use "file system" instead of "filesystem". |
| 702 |
* tests/datamash-tests-2.pl: Wrap lines longer than 80 characters. |
| 703 |
|
| 704 |
maint: fix typo in a comment |
| 705 |
|
| 706 |
2022-06-04 Timothy Rice <[email protected]> |
| 707 |
|
| 708 |
Remove commented-out code |
| 709 |
|
| 710 |
Fix typo |
| 711 |
|
| 712 |
datamash: Align field_operations columns |
| 713 |
It was difficult to visually group entries with the columns zig-zagging. |
| 714 |
|
| 715 |
datamash: Alias echo -> cut and unique -> uniq |
| 716 |
|
| 717 |
2022-06-03 Erik Auerswald <[email protected]> |
| 718 |
|
| 719 |
tests: enable valgrind test to pass |
| 720 |
The sub-test "custom-format" of the expensive test |
| 721 |
datamash-valgrind.sh would always fail, because the |
| 722 |
datamash was supposed to sum all input numbers, but |
| 723 |
some of those are too big for 80-bit extended floating |
| 724 |
point numbers as used on x86. Thus datamash would |
| 725 |
emit an error message and return an exit code of 1. |
| 726 |
That was interpreted as a test failure. |
| 727 |
|
| 728 |
* tests/datamash-valgrind.sh: Use different valgrind error |
| 729 |
exit code to distinguish between valgrind detecting a |
| 730 |
memory leak and datamash reporting an error. |
| 731 |
|
| 732 |
2022-06-02 Timothy Rice <[email protected]> |
| 733 |
|
| 734 |
maint: Impose '-T small' for fullfs check |
| 735 |
|
| 736 |
maint: Ignore side-effects make check-expensive |
| 737 |
|
| 738 |
2022-06-01 Shawn Wagner <[email protected]> |
| 739 |
|
| 740 |
Merge branch 'master' of ssh://git.sv.gnu.org/srv/git/datamash |
| 741 |
|
| 742 |
Fix memory leaks in decorate |
| 743 |
|
| 744 |
Fix memory leaks with custom numeric precisions and formats |
| 745 |
|
| 746 |
Fix some memory leaks in crosstab code |
| 747 |
|
| 748 |
Fix a memory leak in parsing column names. |
| 749 |
|
| 750 |
2022-06-01 Erik Auerswald <[email protected]> |
| 751 |
|
| 752 |
doc: fix a few typos |
| 753 |
* HACKING.md: Fix typos. |
| 754 |
* build-aux/create_corrupted_file_system.sh: Fix typos in comments. |
| 755 |
* build-aux/create_small_file_system.sh: Fix typo in a comment. |
| 756 |
|
| 757 |
2022-05-31 Shawn <[email protected]> |
| 758 |
|
| 759 |
Add bootstrap instructions for NetBSD and OpenBSD to HACKING.md |
| 760 |
|
| 761 |
2022-05-31 Erik Auerswald <[email protected]> |
| 762 |
|
| 763 |
doc: fix typo and quoting in man page template |
| 764 |
This is based on a Debian patch applied to GNU Datamash during |
| 765 |
packaging. The Debian patch from Alejandro Garrido Mota |
| 766 |
<[email protected]> modifies the generated datamash man page. |
| 767 |
The Debian patch can be found at: |
| 768 |
https://sources.debian.org/src/datamash/1.7-2/debian/patches/fix-manpage.diff/ |
| 769 |
|
| 770 |
* man/datamash.x: Spelling fix varient->variant. Consistently |
| 771 |
use ' instead of \' as single quote character. |
| 772 |
|
| 773 |
2022-05-30 Erik Auerswald <[email protected]> |
| 774 |
|
| 775 |
doc: tweak help output and man pages |
| 776 |
Mention the LC_NUMERIC environment variable in datamash --help |
| 777 |
output and the generated man page. |
| 778 |
|
| 779 |
Add an "Options:" header line to the output of datamash --help |
| 780 |
and decorate --help so that help2man detects the OPTIONS section. |
| 781 |
|
| 782 |
Use DESCRIPTION instead of OVERVIEW to add text from the man page |
| 783 |
template to the DESCRIPTION section of the decorate(1) man page. |
| 784 |
|
| 785 |
Move the examples from the decorate(1) man page template into the |
| 786 |
EXAMPLES section of the generated man page. |
| 787 |
|
| 788 |
* man/decorate.x: Rename OVERVIEW to DESCRIPTION. Move EXAMPLES. |
| 789 |
* src/datamash.c (usage): Add "Options:" header and "Environment:" |
| 790 |
section to help output. |
| 791 |
* src/decorate.c (usage): Add "Options:" header to help output. |
| 792 |
|
| 793 |
2022-05-29 Erik Auerswald <[email protected]> |
| 794 |
|
| 795 |
datamash: fix short option -c X |
| 796 |
The short option -c X is documented as a short alternative to |
| 797 |
--collapse-delimiter=X, but it is not accepted. Fix this. |
| 798 |
|
| 799 |
* src/datamash.c (short_options): Add "c:". |
| 800 |
* tests/datamash-tests.pl: Test use of -c. |
| 801 |
|
| 802 |
2022-05-29 Erik Auerswald <[email protected]> |
| 803 |
|
| 804 |
doc: leading and trailing whitespace with -W |
| 805 |
With the -W, --whitespace option, datamash(1) ignores leading |
| 806 |
whitespace, but not trailing whitespace. Trailing whitespace |
| 807 |
results in an additional empty field at the end of the line. |
| 808 |
This is different to field splitting in Awk, Bash, or Python. |
| 809 |
|
| 810 |
This behavior is tested for, but not documented. Thus mention |
| 811 |
it in the texinfo documentation. |
| 812 |
|
| 813 |
* doc/datamash.texi: Add a senetence to the -W, --whitespace |
| 814 |
option description. |
| 815 |
|
| 816 |
2022-05-29 Erik Auerswald <[email protected]> |
| 817 |
|
| 818 |
doc: tweak NEWS entries for new features |
| 819 |
There are new features for both datamash(1) and decorate(1). |
| 820 |
Ensure that every new feature description mentions the program. |
| 821 |
Additionally, move the new decorate(1) feature entry below the |
| 822 |
new datamash(1) features to keep chronological order of entries. |
| 823 |
|
| 824 |
* NEWS: Always mention the changed program. Move new entry |
| 825 |
below existing entries. |
| 826 |
|
| 827 |
2022-05-29 Erik Auerswald <[email protected]> |
| 828 |
|
| 829 |
decorate: new conversions ipv6v4map and ipv6v4comp |
| 830 |
The two new decorate(1) conversion methods ipv6v4map and |
| 831 |
ipv6v4comp allow to sort on a field that may contain either |
| 832 |
an IPv6 or an IPv4 address. |
| 833 |
|
| 834 |
IPv4 and IPv6 addresses can be seen as IP addresses. Logs from |
| 835 |
a "dual-stack" application, e.g., a web server, may contain |
| 836 |
either an IPv4 or IPv6 address at a given position in each line. |
| 837 |
Thus if one wants to sort the log file on the IP address, |
| 838 |
both IPv4 and IPv6 addresses need to be accepted as sort key |
| 839 |
and sorted consistently. One approach is to transform one |
| 840 |
address type into the other before sorting. IPv6 supports |
| 841 |
the transformation of IPv4 addresses into IPv6 addresses. |
| 842 |
|
| 843 |
There are two common methods for accomodating IPv4 addresses in |
| 844 |
IPv6: IPv4-Mapped addresses and the deprecated IPv4-Compatible |
| 845 |
addresses. Both can be used to convert a given IPv4 address |
| 846 |
to an IPv6 address. Both IPv4-Mapped and IPv4-Compatible IPv6 |
| 847 |
address ranges are reserved by IANA and always represent IPv4 |
| 848 |
addresses in a dual-stack enabled application. |
| 849 |
|
| 850 |
IPv4-Compatible addresses just add 96 leading zero bits to |
| 851 |
the 32 bit IPv4 address to create a 128 bit IPv6 address. |
| 852 |
This results in an ambiguity for the unspecified address |
| 853 |
(all-zero in both IPv4 and IPv6) and the IPv6 localhost address |
| 854 |
::1 with the first host address of "this" network in IPv4 |
| 855 |
(0.0.0.1). IPv4-Mapped addresses avoid this ambiguity. |
| 856 |
|
| 857 |
But since IPv4-Compatible IPv6 addresses can be seen as |
| 858 |
treating the IP address (both version 4 and version 6) as |
| 859 |
a specific way to represent an integer value I think it is |
| 860 |
useful to support this transformation as well. |
| 861 |
|
| 862 |
Both conversions logically convert an IPv4 address to an IPv6 |
| 863 |
address, but the code actually creates a textual representation |
| 864 |
of an 128 bit integer from either an IPv4 or IPv6 address. |
| 865 |
|
| 866 |
Functionality like this was requested for sort(1) from GNU |
| 867 |
Coreutils: |
| 868 |
https://lists.gnu.org/archive/html/coreutils/2011-06/msg00078.html |
| 869 |
https://lists.gnu.org/r/bug-coreutils/2015-06/msg00039.html |
| 870 |
|
| 871 |
It was rejected for sort(1) from GNU Coreutils: |
| 872 |
https://www.gnu.org/software/coreutils/rejected_requests.html#sort |
| 873 |
https://lists.gnu.org/r/bug-coreutils/2015-06/msg00041.html |
| 874 |
|
| 875 |
Thus it seems appropriate for decorate(1), complementing the |
| 876 |
existing conversion methods for either IPv4 or IPv6 addresses, |
| 877 |
but not both. |
| 878 |
|
| 879 |
* NEWS: Mention new decorate conversion methods. |
| 880 |
* src/decorate-functions.c: Implement new conversion methods. |
| 881 |
(decorate_ipv6_ipv4): New function. |
| 882 |
(decorate_ipv6_ipv4_mapped): New function. |
| 883 |
(decorate_ipv6_ipv4_compat): New function. |
| 884 |
(builtin_conversions): Add new operations. |
| 885 |
* tests/decorate-errors.pl, |
| 886 |
tests/decorate-sort-tests.pl, |
| 887 |
tests/decorate-tests.pl: Add tests for new conversion methodss. |
| 888 |
|
| 889 |
2022-05-29 Erik Auerswald <[email protected]> |
| 890 |
|
| 891 |
doc: adjust short description in decorate man page |
| 892 |
The decorate man page used the datamash short description. |
| 893 |
Replace it with a short description of decorate. |
| 894 |
|
| 895 |
* man/decorate.x: Adjust short description. |
| 896 |
|
| 897 |
2022-05-29 Erik Auerswald <[email protected]> |
| 898 |
|
| 899 |
maint: fix syntax-checks |
| 900 |
* AUTHORS: Break line at 80 characters. |
| 901 |
* THANKS: Break line at 80 characters. |
| 902 |
|
| 903 |
doc: mention -C, --skip-comments in texinfo manual |
| 904 |
* doc/datamash.texi: Mention -C, --skip-comments |
| 905 |
|
| 906 |
doc: fix man page name in help output |
| 907 |
* src/datamash.c: Use PROGRAM_NAME as man page name. |
| 908 |
* src/decorate.c: Likewise. |
| 909 |
|
| 910 |
2022-05-29 Erik Auerswald <[email protected]> |
| 911 |
|
| 912 |
doc: mention LC_NUMERIC in texinfo manual |
| 913 |
The LC_NUMERIC environment variable affects both the decimal and |
| 914 |
thousands separator used by GNU Datamash. |
| 915 |
|
| 916 |
* doc/datamash.texi: Mention LC_NUMERIC. |
| 917 |
|
| 918 |
2022-05-28 Erik Auerswald <[email protected]> |
| 919 |
|
| 920 |
fix floor/ceil/up/down confusion in man page |
| 921 |
* man/datamash.x: floor is down, ceil is up. |
| 922 |
|
| 923 |
2022-05-28 Timothy Rice <[email protected]> |
| 924 |
|
| 925 |
Change tabs to spaces for consistency |
| 926 |
|
| 927 |
Update bug report address to bug-datamash |
| 928 |
|
| 929 |
Promote Erik to the 'members' area in AUTHORS (i.e. git push access.) |
| 930 |
|
| 931 |
Clean up trailing end-of-line whitespaces. |
| 932 |
Partial revert of 9347234 which incorrectly deleted entire lines due to |
| 933 |
poor choice of sed command. |
| 934 |
|
| 935 |
Clean up trailing end-of-line whitespaces. |
| 936 |
|
| 937 |
2022-05-27 Shawn Wagner <[email protected]> |
| 938 |
|
| 939 |
Squashed commit of the following: |
| 940 |
commit ee69c4d1c27e683d91163129ca1f5e43adf34243 |
| 941 |
Author: Shawn Wagner <[email protected]> |
| 942 |
Date: Thu May 26 05:51:19 2022 -0700 |
| 943 |
|
| 944 |
Add tests for mean square and root mean square |
| 945 |
|
| 946 |
Also update the R code in the file used to verify results to include |
| 947 |
newer operations. |
| 948 |
|
| 949 |
commit 2036f7259a371420c8a90b8af31187f77a044290 |
| 950 |
Author: Shawn <[email protected]> |
| 951 |
Date: Fri Jun 19 15:38:07 2020 -0700 |
| 952 |
|
| 953 |
Add mean square/root mean square commands. |
| 954 |
|
| 955 |
doc/datamash.texi: Documentation |
| 956 |
src/field-ops.c,src/op-defs.c,src/op-defs.h: New ms and rms commands. |
| 957 |
|
| 958 |
2022-05-27 Timothy Rice <[email protected]> |
| 959 |
|
| 960 |
Expand AUTHORS and THANKS |
| 961 |
|
| 962 |
2022-05-18 Shawn Wagner <[email protected]> |
| 963 |
|
| 964 |
Rebuild mr/.gitignore |
| 965 |
|
| 966 |
2022-05-18 Shawn <[email protected]> |
| 967 |
|
| 968 |
Update bash completion module |
| 969 |
contrib/bash-completion/datamash: Add new commands and options |
| 970 |
|
| 971 |
2022-05-18 Shawn Wagner <[email protected]> |
| 972 |
|
| 973 |
Add -c/--collapse-delimiter argument |
| 974 |
|
| 975 |
Tweaks to satisfy make syntax-check |
| 976 |
|
| 977 |
2022-05-18 Shawn <[email protected]> |
| 978 |
|
| 979 |
Squashed commit of the following: |
| 980 |
commit 700e3ab38e19d5f53eb332ea11fa6001505fc026 |
| 981 |
Author: Shawn Wagner <[email protected]> |
| 982 |
Date: Sat Jun 20 01:53:04 2020 -0700 |
| 983 |
|
| 984 |
Properly escape sort commands executed by sh |
| 985 |
|
| 986 |
Also removes the arbitrary 1024 character limit on sort command. |
| 987 |
|
| 988 |
* bootstrap.conf,Makefile.am: Add sh-quote gnulib module |
| 989 |
* src/decorate.c: --print-sort-args quotes arguments when needed. |
| 990 |
* src/datamash.c: Shell escape sort command used by popen(), get rid of |
| 991 |
max length of it. |
| 992 |
* tests/datamash-sort-errors.sh,tests/decorate-tests.sh: Handle new |
| 993 |
output. |
| 994 |
|
| 995 |
commit ae84f5dddf6761d80cd08e441358ca23c96f13d6 |
| 996 |
Author: Shawn Wagner <[email protected]> |
| 997 |
Date: Sat Jun 20 01:05:09 2020 -0700 |
| 998 |
|
| 999 |
Use an unstable sort with NetBSD /usr/bin/sort in decorate |
| 1000 |
|
| 1001 |
It's stable by default, unlike any other sort(1) I checked, so |
| 1002 |
when using it, pass an option to make it unstable to pass tests cases. |
| 1003 |
|
| 1004 |
* src/decorate.c: Pass -S to /usr/bin/sort on NetBSD |
| 1005 |
* tests/decorate-sort-tests.pl tests/decorate-tests.pl: Force using |
| 1006 |
/usr/bin/sort on NetBSD, and account for new output in test cases. |
| 1007 |
|
| 1008 |
commit 267c8974a5eed4844d9ee17e3f0aa9c45fe5d95f |
| 1009 |
Author: Shawn Wagner <[email protected]> |
| 1010 |
Date: Fri Jun 19 23:14:53 2020 -0700 |
| 1011 |
|
| 1012 |
Add a --sort-cmd argument to datamash and decorate. |
| 1013 |
|
| 1014 |
Allows overriding the version of sort(1) found by configure. |
| 1015 |
|
| 1016 |
src/datamash.c,src/decorate.c: Add --sort-cmd argument. |
| 1017 |
tests/datamash-sort-errors.sh: Use it in tests designed to fail. |
| 1018 |
doc/datamash.texi: Document it. |
| 1019 |
|
| 1020 |
commit 82fb2366e500533f91171465c511ddc3e600a53b |
| 1021 |
Author: Shawn Wagner <[email protected]> |
| 1022 |
Date: Fri Jun 19 23:00:39 2020 -0700 |
| 1023 |
|
| 1024 |
Make configure check for sort(1) |
| 1025 |
|
| 1026 |
First looks for gsort, then sort, so that non-GNU userland OSes with |
| 1027 |
GNU coreutils installed will prefer GNU sort. |
| 1028 |
|
| 1029 |
* configure.ac: test for gsort and sort |
| 1030 |
* src/datamash.c,src/decorate.c: Use the path to sort found by configure. |
| 1031 |
* src/datamash.c: Make it harder to overflow the sort command string. |
| 1032 |
* tests/decorate-tests.pl: Fix test cases for using full path to sort |
| 1033 |
|
| 1034 |
2022-05-18 Shawn Wagner <[email protected]> |
| 1035 |
|
| 1036 |
Fix --help not including default value for --filler argument. |
| 1037 |
Patch from Erik Auerswald. |
| 1038 |
|
| 1039 |
2022-05-14 Shawn Wagner <[email protected]> |
| 1040 |
|
| 1041 |
Some auditing of gnulib modules |
| 1042 |
Added some missing ones for things used by datamash, removed some |
| 1043 |
unused ones. |
| 1044 |
|
| 1045 |
Squashed commit of the following: |
| 1046 |
|
| 1047 |
commit ce8fd789a0d60f0592ec79567f84c09b05e2b4aa |
| 1048 |
Author: Shawn Wagner <[email protected]> |
| 1049 |
Date: Sat May 14 05:43:05 2022 -0700 |
| 1050 |
|
| 1051 |
Update m4/ax_c_long_long.m4 from autoconf-archive latest |
| 1052 |
|
| 1053 |
commit d5cc572bc52d02169959361aca3f0e0823643d79 |
| 1054 |
Author: Shawn Wagner <[email protected]> |
| 1055 |
Date: Sat May 14 05:34:48 2022 -0700 |
| 1056 |
|
| 1057 |
Update m4/.gitignore |
| 1058 |
|
| 1059 |
commit ef0ec5ca533067948800e3f8c10292b553cfb4eb |
| 1060 |
Author: Shawn <[email protected]> |
| 1061 |
Date: Thu Apr 23 15:57:02 2020 -0700 |
| 1062 |
|
| 1063 |
Add missing gnulib modules used in decorate |
| 1064 |
|
| 1065 |
commit 67cbe0b3462dab739a3bd81a89e1e91b2d128519 |
| 1066 |
Author: Shawn <[email protected]> |
| 1067 |
Date: Mon Apr 20 01:49:03 2020 -0700 |
| 1068 |
|
| 1069 |
Add missing gnulib modules |
| 1070 |
|
| 1071 |
2022-05-14 Shawn Wagner <[email protected]> |
| 1072 |
|
| 1073 |
Typo in manpage -h -> -H |
| 1074 |
Patch by Erik Auerswald |
| 1075 |
|
| 1076 |
Fix spelling errors and other issues in texi documentation. |
| 1077 |
Patch from Erik Auerswald. |
| 1078 |
|
| 1079 |
Fix an incorrect format in a decorate(1) message. |
| 1080 |
Reported by Jiri Hladky, fixed by Erik Auerswald. |
| 1081 |
|
| 1082 |
Spelling fixes in documentation |
| 1083 |
|
| 1084 |
2021-01-06 Assaf Gordon <[email protected]> |
| 1085 |
|
| 1086 |
maint: update copyright year |
| 1087 |
Run "make update-copyright" and then: |
| 1088 |
* gnulib: Update to latest. |
| 1089 |
* tests/init.sh, bootstrap: Update to latest from gnulib. |
| 1090 |
* m4/.gitignore: Add gnulib updates. |
| 1091 |
|
| 1092 |
2020-04-30 Shawn <[email protected]> |
| 1093 |
|
| 1094 |
datamash: fix missing -z when calling sort(1) |
| 1095 |
When sorting NUL terminated lines, the needed -z option wasn't being |
| 1096 |
passed to sort(1), causing errors due to improperly sorted data. Fixed, |
| 1097 |
plus raises an error if the system sort(1) doesn't support -z. |
| 1098 |
|
| 1099 |
* NEWS: Mention bugfix. |
| 1100 |
* configure.ac: Test to see if sort(1) understands -z |
| 1101 |
* datamash.c (open_input): If "-z" and "-s" are used, add "-z" to the |
| 1102 |
sort(1) command line; Exit with an error if sort(1) does not support "-z". |
| 1103 |
|
| 1104 |
2020-04-30 Shawn <[email protected]> |
| 1105 |
|
| 1106 |
datamash,decorate: use pledge(2) on OpenBSD to restrict capabilities |
| 1107 |
pledge is an OpenBSD specific mechanism for restricting what syscalls |
| 1108 |
a process can execute, or limiting how they behave. It's considered |
| 1109 |
polite on OpenBSD to limit a program to just the bare minimum it |
| 1110 |
needs to run. See https://man.openbsd.org/pledge.2 for details. |
| 1111 |
|
| 1112 |
* configure.ac: Add check for pledge(2). |
| 1113 |
* src/system.h (openbsd_pledge): New static function, calling pledge(2). |
| 1114 |
* src/datamash.c (main), src/decorate.c (main): Call new function on startup. |
| 1115 |
|
| 1116 |
2020-04-30 Shawn <[email protected]> |
| 1117 |
|
| 1118 |
tests: use jot as seq on OpenBSD instead of skipping tests |
| 1119 |
* init.cfg(openbsd_seq_replacement_): New function. |
| 1120 |
Work around OpenBSD's lack of seq(1) using jot(1). |
| 1121 |
* tests/datamash-rand.sh, tests/datamash-sort-errors.sh, |
| 1122 |
tests/datamash-strbin.sh: Use new function. |
| 1123 |
|
| 1124 |
tests: handle getopt_long(3) differences on OpenBSD |
| 1125 |
* tests/datamash-error-msgs.pl, tests/decorate-errors.pl: Work around |
| 1126 |
OpenBSD's getopt_long(3) producing different error messages from GNU |
| 1127 |
version. |
| 1128 |
|
| 1129 |
2020-04-24 Assaf Gordon <[email protected]> |
| 1130 |
|
| 1131 |
maint: update NEWS with version 1.7 and date |
| 1132 |
|
| 1133 |
2020-04-24 Assaf Gordon <[email protected]> |
| 1134 |
|
| 1135 |
decorate: new program (experimental) |
| 1136 |
decorate(1) works in tandem with sort(1) to enable sorting by |
| 1137 |
non-standard ordering, e.g. IPv4, IPv6, roman numerals. |
| 1138 |
|
| 1139 |
Suggested by Pádraig Brady in: |
| 1140 |
https://lists.gnu.org/r/bug-coreutils/2015-06/msg00076.html |
| 1141 |
|
| 1142 |
* NEWS: Mention new program. |
| 1143 |
* bootstrap.conf: Add sys_socket, netinet_in gnulib modules. |
| 1144 |
* .gitignore: Ignore decorate related files. |
| 1145 |
* Makefile.am (bin_PROGRAMS): Add decorate. |
| 1146 |
(decorate_SOURCES/CFLAGS/CPPFLAGS/LDFLAGS): New items. |
| 1147 |
(man_MANS): Add decorate. |
| 1148 |
(TESTS): Add new tests. |
| 1149 |
* src/decorate.c, src/key-compare.{c,h}: New program, adapted from |
| 1150 |
https://lists.gnu.org/archive/html/coreutils/2019-03/msg00056.html |
| 1151 |
* src/decorate-functions.{c,h}: New module. |
| 1152 |
* man/decorate.x: New file. |
| 1153 |
* src/system.h: Add quotef,quotef_n,FALLTHROUGH,SORT_FAILURE. |
| 1154 |
* tests/decorate-errors.pl, tests/decorate-sort-tests.pl, |
| 1155 |
tests/decorate-tests.pl: New tests. |
| 1156 |
* po/POTFILES.in: Add new .c files. |
| 1157 |
|
| 1158 |
2020-04-24 Assaf Gordon <[email protected]> |
| 1159 |
|
| 1160 |
maint: fix syntax-checks following sha256,geomean additions |
| 1161 |
* src/datamash.c (usage), |
| 1162 |
tests/datamash-sha.pl, |
| 1163 |
tests/datamash-stats.pl: Break line at 80 characters. |
| 1164 |
* src/fields-ops.c: Fix space-before-parentheses. |
| 1165 |
|
| 1166 |
2020-04-23 Assaf Gordon <[email protected]> |
| 1167 |
|
| 1168 |
maint: update help2man |
| 1169 |
|
| 1170 |
2020-04-23 Shawn <[email protected]> |
| 1171 |
|
| 1172 |
datamash: new operations: geomean,harmmean |
| 1173 |
They compute the geometric and harmonic means, thus adding support |
| 1174 |
for all three classic Pythagorean means. |
| 1175 |
|
| 1176 |
$ seq 5 | datamash harmmean 1 |
| 1177 |
2.1897810218978 |
| 1178 |
$ seq 5 | datamash geomean 1 |
| 1179 |
2.6051710846974 |
| 1180 |
|
| 1181 |
Equivalent to the following R code: |
| 1182 |
|
| 1183 |
> library("psych") |
| 1184 |
> x = seq(5) |
| 1185 |
> harmonic.mean(x) |
| 1186 |
[1] 2.189781 |
| 1187 |
> geometric.mean(x) |
| 1188 |
[1] 2.605171 |
| 1189 |
|
| 1190 |
* NEWS, doc/datamash.texi, |
| 1191 |
man/datamash.x: Mention new operations |
| 1192 |
* bootstrap.conf: Use gnulib's logl module. |
| 1193 |
* Makefile.am (datamash_LDADD): Add more math libraries. |
| 1194 |
* m4/.gitignore: Add logl files. |
| 1195 |
* src/op-defs.{h,c}: Define new operations. |
| 1196 |
* src/field-ops.c: Implement new operations |
| 1197 |
* src/datamash.c (usage): List new operations. |
| 1198 |
* tests/datamash-stats.pl: Add tests. |
| 1199 |
|
| 1200 |
2020-04-10 Shawn <[email protected]> |
| 1201 |
|
| 1202 |
datamash: new line operations: sha224 and sha384 |
| 1203 |
Added for the sake of completeness; the implementations are already present. |
| 1204 |
|
| 1205 |
$ printf "%s\n" 1 2 3 | datamash sha224 1 |
| 1206 |
e25388fde8290dc286a6164fa2d97e551b53498dcbf7bc378eb1f178 |
| 1207 |
58b2aaa0bfae7acc021b3260e941117b529b2e69de878fd7d45c61a9 |
| 1208 |
4cfc3a1811fe40afa401b25ef7fa0379f1f7c1930a04f8755d678474 |
| 1209 |
|
| 1210 |
$ printf a | datamash sha384 1 |
| 1211 |
54a59b9f22b0b80880d8427e548b7c23abd873486e1f035dce9cd697e85175033caa88e6d57bc35efae0b5afd3145f31 |
| 1212 |
|
| 1213 |
Equivalent to: |
| 1214 |
|
| 1215 |
$ printf 1 | sha224sum |
| 1216 |
e25388fde8290dc286a6164fa2d97e551b53498dcbf7bc378eb1f178 - |
| 1217 |
$ printf 2 | sha224sum |
| 1218 |
58b2aaa0bfae7acc021b3260e941117b529b2e69de878fd7d45c61a9 - |
| 1219 |
$ printf 3 | sha224sum |
| 1220 |
4cfc3a1811fe40afa401b25ef7fa0379f1f7c1930a04f8755d678474 - |
| 1221 |
|
| 1222 |
$ printf a | sha384sum |
| 1223 |
54a59b9f22b0b80880d8427e548b7c23abd873486e1f035dce9cd697e85175033caa88e6d57bc35efae0b5afd3145f31 |
| 1224 |
|
| 1225 |
* NEWS, |
| 1226 |
doc/datamash.texi, |
| 1227 |
man/datamash.x: Mention new operations. |
| 1228 |
* src/datamash.c (usage): List new options. |
| 1229 |
* src/op-defs.{h,c}: Define new operations. |
| 1230 |
* src/field-ops.c: Implement operations. |
| 1231 |
* tests/datamash-sha.pl: Add tests. |
| 1232 |
|
| 1233 |
2020-02-24 Assaf Gordon <[email protected]> |
| 1234 |
|
| 1235 |
doc: update NEWS with version 1.6 and date |
| 1236 |
|
| 1237 |
build: update bootstrap.conf with xstrtol-error |
| 1238 |
* bootstrap.conf: add xstrtol-error (following gnulib update, without |
| 1239 |
it "make dist" fails at "update-po" stage). |
| 1240 |
|
| 1241 |
gnulib: update to latest |
| 1242 |
* m4/.gitignore: Auto-updated by 'bootstrap'. |
| 1243 |
|
| 1244 |
doc: mention getnum bugfix in NEWS |
| 1245 |
* NEWS: Mention bugfix |
| 1246 |
|
| 1247 |
2020-02-13 Assaf Gordon <[email protected]> |
| 1248 |
|
| 1249 |
datamash: bug fix 'getnum' operation ignoring 8,9 chars |
| 1250 |
Digits 8,9 were wrongly ignored on in default numeric format (decimal): |
| 1251 |
|
| 1252 |
$ echo foo411586 | datamash getnum 1 |
| 1253 |
4115 [ wrong result ] |
| 1254 |
411586 [ fixed result ] |
| 1255 |
|
| 1256 |
* src/utils.c (extract_number_types): Add missing digits to string |
| 1257 |
pattern. |
| 1258 |
* tests/datamash-tests-2.pl: Add tests to catch this error. |
| 1259 |
|
| 1260 |
2020-01-02 Assaf Gordon <[email protected]> |
| 1261 |
|
| 1262 |
maint: update copyright date to 2020 |
| 1263 |
* all files: Run "make update-copyright". |
| 1264 |
|
| 1265 |
2019-09-17 Assaf Gordon <[email protected]> |
| 1266 |
|
| 1267 |
doc: update NEWS with version 1.5 and date |
| 1268 |
|
| 1269 |
2019-09-03 Assaf Gordon <[email protected]> |
| 1270 |
|
| 1271 |
datamash: new operation: cut |
| 1272 |
Similar to cut(1), it copies the input field to the output as-is. |
| 1273 |
The advantage over cut(1) is that combined with datamash's other features, |
| 1274 |
input fields can be specified by name instead of column number, |
| 1275 |
and output fields can be re-ordered and duplicated. |
| 1276 |
|
| 1277 |
Example: |
| 1278 |
$ printf "a b c\n1 X 6\n" | datamash -W -H cut c,a,c |
| 1279 |
cut(c) cut(a) cut(c) |
| 1280 |
6 1 6 |
| 1281 |
|
| 1282 |
Suggested by Torsten Seemann <[email protected]> in |
| 1283 |
https://lists.gnu.org/archive/html/bug-datamash/2019-09/msg00000.html |
| 1284 |
|
| 1285 |
* NEWS: Mention new operation. |
| 1286 |
* src/datamash.c (usage): Add new op. |
| 1287 |
* src/op-defs.{h,c}: Define new OP_CUT. |
| 1288 |
* src/field-ops.{c}: Implement new OP_CUT. |
| 1289 |
* contrib/bash-completion/datamash: Add new operation. |
| 1290 |
* doc/datamash.texi, man/datamash.x: Mention new operation. |
| 1291 |
* tests/datamash-tests-2.pl: Add tests. |
| 1292 |
|
| 1293 |
2019-08-27 Assaf Gordon <[email protected]> |
| 1294 |
|
| 1295 |
datamash: new operation: getnum |
| 1296 |
Extract numeric values from a string: |
| 1297 |
|
| 1298 |
$ echo foo-42.0-bar | datamash getnum 1 |
| 1299 |
42.0 |
| 1300 |
|
| 1301 |
Also accept single-letter option for different numeric types: |
| 1302 |
|
| 1303 |
$ echo zoo-42.0-bar | datamash getnum:p 1 # positive decimal (default) |
| 1304 |
-42.0 |
| 1305 |
$ echo zoo-42.0-bar | datamash getnum:n 1 # Natural numbers |
| 1306 |
42 |
| 1307 |
$ echo zoo-42.0-bar | datamash getnum:i 1 # Integers |
| 1308 |
-42 |
| 1309 |
$ echo zoo-42.0-bar | datamash getnum:d 1 # Decimal |
| 1310 |
-42.0 |
| 1311 |
$ echo zoo-42.0-bar | datamash getnum:h 1 # Hex |
| 1312 |
66 |
| 1313 |
$ echo zoo-42.0-bar | datamash getnum:o 1 # Oct |
| 1314 |
34 |
| 1315 |
|
| 1316 |
* NEWS: Mention new operation. |
| 1317 |
* src/datamash.c (usage): Add new op. |
| 1318 |
* src/op-defs.{h,c}: Define new OP_GETNUM. |
| 1319 |
*src/op-parser.c (set_op_params): Parse single-letter options. |
| 1320 |
(parse_operation_params): Accept character parameters (not just numbers). |
| 1321 |
* src/field-ops.{c}: Implement new OP_GETNUM. |
| 1322 |
* src/utils.{h,c} (extract_number): New function. |
| 1323 |
* contrib/bash-completion/datamash: Add new operation. |
| 1324 |
* doc/datamash.texi, man/datamash.x: Mention new operation. |
| 1325 |
* tests/datamash-tests-2.pl: Add tests. |
| 1326 |
|
| 1327 |
2019-08-27 Assaf Gordon <[email protected]> |
| 1328 |
|
| 1329 |
build: work-around automake 1.16 regression with non-gnu make |
| 1330 |
Discussed in https://lists.gnu.org/r/automake/2019-08/msg00000.html |
| 1331 |
Solved by Bruno Haible: |
| 1332 |
https://lists.gnu.org/r/automake/2019-08/msg00005.html |
| 1333 |
https://lists.gnu.org/r/bug-gnulib/2019-08/msg00064.html |
| 1334 |
|
| 1335 |
* Makefile.am (LDADD): Remove $(top_builddir) from library path. |
| 1336 |
|
| 1337 |
2019-08-27 Assaf Gordon <[email protected]> |
| 1338 |
|
| 1339 |
gnulib: update to latest (gettext 0.20 fix) |
| 1340 |
|
| 1341 |
2019-08-23 Assaf Gordon <[email protected]> |
| 1342 |
|
| 1343 |
maint: don't syntax-check for trailing spaces on a unit test file |
| 1344 |
|
| 1345 |
maint: appease space_before_parens syntax-check |
| 1346 |
|
| 1347 |
maint: ignore space_before_parens syntax-check on STREQ_LEN |
| 1348 |
|
| 1349 |
2019-08-23 Assaf Gordon <[email protected]> |
| 1350 |
|
| 1351 |
datamash: new operations: extname, barename |
| 1352 |
Extract the file extension, and the basename without the extension: |
| 1353 |
|
| 1354 |
$ echo foo.tar.gz | datamash barename 1 extname 1 |
| 1355 |
foo tar.gz |
| 1356 |
|
| 1357 |
$ echo /home/foo/bar.txt \ |
| 1358 |
| datamash dirname 1 basename 1 barename 1 extname 1 |
| 1359 |
/home/foo bar.txt bar txt |
| 1360 |
|
| 1361 |
* NEWS: Mention new operation. |
| 1362 |
* src/datamash.c (usage): Add new op. |
| 1363 |
* src/op-defs.{h,c}: Define new OP_BARENAME,OP_EXTNAME. |
| 1364 |
* src/field-ops.{c}: Implement new OP_BARENAME,OP_EXTNAME. |
| 1365 |
* src/utils.{h,c} (is_add_on_extension,+guess_file_extension): New |
| 1366 |
helper functions. |
| 1367 |
* contrib/bash-completion/datamash: Add new operation. |
| 1368 |
* doc/datamash.texi, man/datamash.x: Mention new operation. |
| 1369 |
* tests/datamash-tests-2.pl: Add tests. |
| 1370 |
|
| 1371 |
2019-08-23 Assaf Gordon <[email protected]> |
| 1372 |
|
| 1373 |
datamash: new operations: dirname, basename |
| 1374 |
Similar to dirname(1) and basename(1), but operate on a file. |
| 1375 |
|
| 1376 |
$ echo /home/foo/bar.txt | datamash dirname 1 basename 1 |
| 1377 |
/home/foo bar.txt |
| 1378 |
|
| 1379 |
* NEWS: Mention new operation. |
| 1380 |
* src/datamash.c (usage): Add new op. |
| 1381 |
* src/op-defs.{h,c}: Define new OP_DIRNAME,OP_BASENAME. |
| 1382 |
* src/field-ops.{c}: Implement new OP_DIRNAME,OP_BASENAME. |
| 1383 |
* contrib/bash-completion/datamash: Add new operation. |
| 1384 |
* doc/datamash.texi, man/datamash.x: Mention new operation. |
| 1385 |
* tests/datamash-tests-2.pl: Add tests. |
| 1386 |
|
| 1387 |
2019-08-07 Assaf Gordon <[email protected]> |
| 1388 |
|
| 1389 |
datamash: accept backslash-escaped characters in field names |
| 1390 |
Suggested by Renato Alves <[email protected]> in |
| 1391 |
https://lists.gnu.org/archive/html/bug-datamash/2019-08/msg00000.html |
| 1392 |
|
| 1393 |
The following are now possible: |
| 1394 |
datamash -H sum FOO\\-BAR < input.txt |
| 1395 |
datamash -H sum 'FOO\-BAR' < input.txt |
| 1396 |
datamash -H sum "FOO\\-BAR" < input.txt |
| 1397 |
|
| 1398 |
* NEWS: Mention the feature. |
| 1399 |
* doc.datamsah.texi, man/datamash.x: Document the feature. |
| 1400 |
* src/op-scanner.h(MAX_IDENTIFIER_LENGTH): New limit. |
| 1401 |
* src/op-scanner.c(scanner_get_token): Improve identifier scanning to |
| 1402 |
allow backslashes. |
| 1403 |
* tests/datamash-error-msgs.pl, tests/datamash-tests-2.pl: Add tests. |
| 1404 |
|
| 1405 |
2019-08-07 Assaf Gordon <[email protected]> |
| 1406 |
|
| 1407 |
datamash: fix mode/antimode incorrect results for negative values |
| 1408 |
In version 1.4 and earlier, this resulted in incorrect values: |
| 1409 |
|
| 1410 |
$ echo -1 | datamash mode 1 |
| 1411 |
1.844674407371e+19 |
| 1412 |
|
| 1413 |
Reported by Renan Valieris <[email protected]> in |
| 1414 |
https://lists.gnu.org/archive/html/bug-datamash/2019-06/msg00001.html |
| 1415 |
|
| 1416 |
* src/utils.c (mode_value): Fix type from size_t to long double. |
| 1417 |
* tests/datamash-tests-2.pl: Add test. |
| 1418 |
* NEWS: Mention fix. |
| 1419 |
|
| 1420 |
2019-01-02 Assaf Gordon <[email protected]> |
| 1421 |
|
| 1422 |
maint: update gnulib to latest |
| 1423 |
* gnulib: Update to latest. |
| 1424 |
* bootstrap, tests/init.sh: Sync from gnulib. |
| 1425 |
|
| 1426 |
maint: update copyright date to 2019 |
| 1427 |
* all files: Run "make update-copyright". |
| 1428 |
|
| 1429 |
2018-12-23 Assaf Gordon <[email protected]> |
| 1430 |
|
| 1431 |
doc: update release date for version 1.4 |
| 1432 |
* NEWS: Update date. |
| 1433 |
|
| 1434 |
2018-12-22 Assaf Gordon <[email protected]> |
| 1435 |
|
| 1436 |
gnulib: update to latest |
| 1437 |
|
| 1438 |
2018-12-15 Assaf Gordon <[email protected]> |
| 1439 |
|
| 1440 |
maint: update .gitignore |
| 1441 |
Following gnulib recent update. |
| 1442 |
|
| 1443 |
* m4/.gitignore: Update file list. |
| 1444 |
|
| 1445 |
2018-12-15 Assaf Gordon <[email protected]> |
| 1446 |
|
| 1447 |
build: update autoconf version requirements |
| 1448 |
Require version 2.69 to bootstrap. |
| 1449 |
After recent gnulib update, gnulib-tool would complain: |
| 1450 |
|
| 1451 |
$ ./gnulib/gnulib-tool |
| 1452 |
./gnulib/gnulib-tool: *** minimum supported autoconf version is 2.63. \ |
| 1453 |
Try adding AC_PREREQ([2.63]) to your configure.ac. |
| 1454 |
./gnulib/gnulib-tool: *** Stop. |
| 1455 |
|
| 1456 |
Hence this update. |
| 1457 |
|
| 1458 |
* configure.ac, bootstrap.conf: Require autoconf version 2.69 or later. |
| 1459 |
|
| 1460 |
2018-12-14 Assaf Gordon <[email protected]> |
| 1461 |
|
| 1462 |
build: add special CPPFLAGS for windows binaries |
| 1463 |
FORCE_C_LOCALE: Force C/POSIX locale, instead of assuming it is |
| 1464 |
available as an environment variable (not easily changeable in cmd.exe). |
| 1465 |
|
| 1466 |
SORT_WITHOUT_LOCALE: don't add "LC_ALL=C" to the sort command-line |
| 1467 |
execution string - the windows interpreter (cmd.exe) can't handle that. |
| 1468 |
|
| 1469 |
* src/datamash.c (main): Add preprocessor conditionals. |
| 1470 |
|
| 1471 |
2018-12-08 Assaf Gordon <[email protected]> |
| 1472 |
|
| 1473 |
datamash: new option -C/--skip-comments |
| 1474 |
Suggested by Mark van Rossum in |
| 1475 |
https://lists.gnu.org/r/bug-datamash/2018-11/msg00001.html |
| 1476 |
https://lists.gnu.org/r/bug-datamash/2018-12/msg00003.html |
| 1477 |
|
| 1478 |
* NEWS: Mention new option. |
| 1479 |
* src/datamash.c (usage, main): Update getopt parsing and help screen. |
| 1480 |
* src/text-options.{c,h} (skip_comments): New varaible. |
| 1481 |
* src/text-lines.{c,h} (line_record_fread): New option to skip comments. |
| 1482 |
(line_record_is_comment): New function. |
| 1483 |
* contrib/bash-completion/datamash: Update bash auto-completion options. |
| 1484 |
* man/datamash.x: Add "skipping comment lines" section. |
| 1485 |
* tests/datamash-tests-2.pl: Add new test cases. |
| 1486 |
|
| 1487 |
2018-12-08 Assaf Gordon <[email protected]> |
| 1488 |
|
| 1489 |
gnulib: update to latest |
| 1490 |
|
| 1491 |
2018-08-22 Assaf Gordon <[email protected]> |
| 1492 |
|
| 1493 |
doc: fix man-page typo |
| 1494 |
Reported by Steve Ward in |
| 1495 |
https://lists.gnu.org/r/bug-datamash/2018-08/msg00004.html . |
| 1496 |
|
| 1497 |
* man/datamash.x: Fix missing formatting letter B. |
| 1498 |
|
| 1499 |
2018-03-23 Assaf Gordon <[email protected]> |
| 1500 |
|
| 1501 |
tests: disable --format="%a" test |
| 1502 |
Valid output can differ (e.g. 0x8.000p-3 vs 0x1.000p+0). |
| 1503 |
|
| 1504 |
* tests/datamash-output-format.pl: Disable 'a1' test. |
| 1505 |
|
| 1506 |
2018-03-23 Assaf Gordon <[email protected]> |
| 1507 |
|
| 1508 |
tests: fix --format='%4000f' expected output |
| 1509 |
Can be 1.000009... or 1.000008999, depending on representation. |
| 1510 |
|
| 1511 |
* tests/datamash-output-format.pl: Check only the first 5 digits. |
| 1512 |
|
| 1513 |
2018-03-17 Assaf Gordon <[email protected]> |
| 1514 |
|
| 1515 |
doc: update NEWS with new version and date |
| 1516 |
* NEWS: Set version 1.3 and date. |
| 1517 |
|
| 1518 |
2018-01-25 Assaf Gordon <[email protected]> |
| 1519 |
|
| 1520 |
maint: fix syntax-check issues |
| 1521 |
* doc/datamash-texinfo.css: Limit to 80 characters. |
| 1522 |
* po/POTFILES.in: Add missing files. |
| 1523 |
* src/double-format.c: Remove unused "ignore-value.h". |
| 1524 |
* src/text-options.{c,h}: Space after parens. |
| 1525 |
|
| 1526 |
2018-01-23 Assaf Gordon <[email protected]> |
| 1527 |
|
| 1528 |
maint: change URLs from http to https |
| 1529 |
* all files: Change to https URLs. |
| 1530 |
|
| 1531 |
datamash: add --format=FORMAT option |
| 1532 |
* NEWS: Mention this. |
| 1533 |
* Maefile.am: |
| 1534 |
* doc/datamash.texi: Mention new option. |
| 1535 |
* src/datamash.c |
| 1536 |
* src/double-format.{c,h}: |
| 1537 |
* src/text-options.{c,h}: |
| 1538 |
* tests/datamash-error-msgs.pl, |
| 1539 |
tests/datamash-output-format.pl: Test new option. |
| 1540 |
* tests/datamash-valgrind.sh: Test large output buffer under valgrind. |
| 1541 |
|
| 1542 |
2018-01-18 Assaf Gordon <[email protected]> |
| 1543 |
|
| 1544 |
datamash: add -R/--round=N option |
| 1545 |
Print numeric values with N decimal places. |
| 1546 |
Example: |
| 1547 |
$ echo 1.1 | datamash --round=5 sum 1 |
| 1548 |
1.10000 |
| 1549 |
|
| 1550 |
Requested in https://github.com/agordon/datamash/issues/5 . |
| 1551 |
|
| 1552 |
* NEWS: Mention this. |
| 1553 |
* src/datamash.c (usage): Mention new option. |
| 1554 |
* configure.ac: Remove nonliteral-printf warning. |
| 1555 |
* doc/datamash.texi: Mention new option. |
| 1556 |
* src/text-options.c,src/text-options.h (numeric_output_format, |
| 1557 |
numeric_output_bufsize): New variables. |
| 1558 |
(set_numeric_output_precision,finalize_numeric_output_buffer): New |
| 1559 |
functions to set the printf style based on requested precision. |
| 1560 |
* src/fields-ops.c: Print numeric output using new format variables. |
| 1561 |
* tests/datamash-error-msgs.pl: Test invalid --round usage. |
| 1562 |
* tests/datamash-output-format.pl: Test --round usage. |
| 1563 |
* Makefile.am: Add new test file. |
| 1564 |
|
| 1565 |
2018-01-04 Assaf Gordon <[email protected]> |
| 1566 |
|
| 1567 |
maint: update copyright year to 2018 |
| 1568 |
* all files: Update with 'make update-copyright'. |
| 1569 |
|
| 1570 |
gnulib: update to latest |
| 1571 |
|
| 1572 |
2017-12-11 Assaf Gordon <[email protected]> |
| 1573 |
|
| 1574 |
maint: add github ISSUE/PULL-REQUEST templates |
| 1575 |
Encourage contributors to use [email protected] instead of github. |
| 1576 |
|
| 1577 |
* .github/ISSUE_TEMPLATE.txt, |
| 1578 |
.github/PULL_REQUEST_TEMPLATE.txt: New files. |
| 1579 |
|
| 1580 |
2017-11-15 Assaf Gordon <[email protected]> |
| 1581 |
|
| 1582 |
gnulib: update to latest |
| 1583 |
* m4/.gitignore: Automatically updated git newest gnulib bootstrap. |
| 1584 |
|
| 1585 |
2017-11-15 Assaf Gordon <[email protected]> |
| 1586 |
|
| 1587 |
datamash: new operation 'trimmean' |
| 1588 |
To calculate 20% trimmed mean: |
| 1589 |
$ printf "%s\n" 13 3 7 33 3 9 | datamash trimmean:0.2 1 |
| 1590 |
8 |
| 1591 |
|
| 1592 |
Using 'trimmean:0' is equivalent to 'mean'. |
| 1593 |
Using 'trimmean:0.5' is equivalent to 'median' (for R compatability). |
| 1594 |
|
| 1595 |
Suggested by Khavish Bhundoo in |
| 1596 |
https://lists.gnu.org/archive/html/bug-datamash/2017-10/msg00004.html . |
| 1597 |
|
| 1598 |
* NEWS: Mention new operation. |
| 1599 |
* src/datamash.c (usage): Add new op. |
| 1600 |
(print_column_headers): Print percent value in headers. |
| 1601 |
* src/op-defs.{h,c}: Define new OP_TRIMMED_MEAN. |
| 1602 |
* src/field-ops.{h,c}: Implement new OP_TRIMMED_MEAN. |
| 1603 |
* src/op-parser.c: (set_op_params): Handle 'trimmean:N' paramater. |
| 1604 |
* src/utils.{h,c} (trimmed_mean_value): New function. |
| 1605 |
* contrib/bash-completion/datamash: Add new operation. |
| 1606 |
* doc/datamash.texi, man/datamash.x: Mention new operation. |
| 1607 |
* tests/datamash-error-msgs.pl: Test 'trimmean' parameter error messages. |
| 1608 |
* tests/datamash-stats.pl: Add tests, compare against R results. |
| 1609 |
|
| 1610 |
2017-09-07 Assaf Gordon <[email protected]> |
| 1611 |
|
| 1612 |
build: indicate which hash functions are used at end of ./configure |
| 1613 |
* NEWS: Mention the change (and the link fix from previous commit). |
| 1614 |
* configure.ac: Print 'internal' or 'external' based on $LIB_CRYPTO. |
| 1615 |
|
| 1616 |
2017-09-07 Jeroen Roovers <[email protected]> |
| 1617 |
|
| 1618 |
build: link with external crypto libraries if needed |
| 1619 |
Datamash uses gnulib's sha* modules, which allow linking with OpenSSL |
| 1620 |
for increased performance (using ./configure --with-openssl=yes). |
| 1621 |
Adjust the LDADD flags to link with the external libraries. |
| 1622 |
|
| 1623 |
Reported in |
| 1624 |
http://lists.gnu.org/archive/html/bug-datamash/2017-08/msg00007.html . |
| 1625 |
|
| 1626 |
* Makafile.am (datamash_LDADD): Add $(LIB_CRYPTO) |
| 1627 |
|
| 1628 |
2017-09-06 Assaf Gordon <[email protected]> |
| 1629 |
|
| 1630 |
datamash: new --output-delimiter=X option |
| 1631 |
Suggested by Dave Myron in |
| 1632 |
https://lists.gnu.org/archive/html/bug-datamash/2017-08/msg00008.html . |
| 1633 |
|
| 1634 |
* src/datamash.c (explicit_output_delimiter): New variable. |
| 1635 |
(main): Handle new option. |
| 1636 |
(usagE): Mention new option. |
| 1637 |
* NEWS: Mention feature. |
| 1638 |
* contrib/bash-completion/datamash: Add option. |
| 1639 |
* doc/datamash.texi: Mention new option. |
| 1640 |
* tests/datamash-tests-2.pl, |
| 1641 |
tests/datamash-error-msgs.pl: Test new option. |
| 1642 |
|
| 1643 |
2017-09-06 Yu Fu <[email protected]> |
| 1644 |
|
| 1645 |
doc: fixed two typos |
| 1646 |
Reported in: https://github.com/agordon/datamash/pull/2 . |
| 1647 |
|
| 1648 |
* examples/readme.md: Fixed transcribes -> transcribed. |
| 1649 |
|
| 1650 |
2017-08-23 Assaf Gordon <[email protected]> |
| 1651 |
|
| 1652 |
version 1.2 |
| 1653 |
* NEWS: Record release date. |
| 1654 |
|
| 1655 |
maint: remove missing files from Makefile.am |
| 1656 |
* Makefile.am: Remove files (which were deleted in previous commit). |
| 1657 |
|
| 1658 |
maint: remove outdated build-aux scripts |
| 1659 |
* build-aux/check-remote-make-all.sh, |
| 1660 |
build-aux/check-remote-make-extra.sh, |
| 1661 |
build-aux/check-remote-make-git.sh, |
| 1662 |
build-aux/check-remote-make.sh: Precursors the http://pretest.nongnu.org, |
| 1663 |
no need for standalone scripts any more. |
| 1664 |
* build-aux/gen-coverage-report.sh, |
| 1665 |
build-aux/rebuild-coverage.sh: obsoleted by 'make coverage'. |
| 1666 |
* build-aux/tag-new-version.sh: Removed. |
| 1667 |
|
| 1668 |
maint: update prerelease checks script |
| 1669 |
* build-aix/prerelease-checks.sh: Remove outdated checks, add |
| 1670 |
non-root-installation check. |
| 1671 |
|
| 1672 |
maint: fix 'syntax-check' errors |
| 1673 |
* src/crosstab.c: space-before-parens. |
| 1674 |
* src/datamash.c: double-word. |
| 1675 |
|
| 1676 |
gnulib: update to latest |
| 1677 |
|
| 1678 |
2017-08-21 Assaf Gordon <[email protected]> |
| 1679 |
|
| 1680 |
tests: skip tests if paste(1) is not found |
| 1681 |
On Alpine linux, paste(1) is not installed by default - skip instead |
| 1682 |
of failing. |
| 1683 |
|
| 1684 |
* init.cfg (require_paste_): New shell function. |
| 1685 |
* tests/datamash-rand.sh, |
| 1686 |
tests/datamash-sort-errors.sh: Skip if paste(1) is not found. |
| 1687 |
|
| 1688 |
2017-08-21 Assaf Gordon <[email protected]> |
| 1689 |
|
| 1690 |
tests: quote '^' in shell commands |
| 1691 |
The '^' character has special meaning in older shells (e.g. OpenSolaris |
| 1692 |
10/sparc). Quote it to prevent test failures. |
| 1693 |
|
| 1694 |
2017-08-21 Assaf Gordon <[email protected]> |
| 1695 |
|
| 1696 |
tests: accept '-nan' under OpenBSD |
| 1697 |
OpenBSD systems return '-nan' instead of 'nan' for two tests. |
| 1698 |
Ignore the '-' prefix. |
| 1699 |
|
| 1700 |
* tests/datamash-tests-2.pl (narm12,narm15): Discard '-' prefix. |
| 1701 |
|
| 1702 |
2017-08-21 Assaf Gordon <[email protected]> |
| 1703 |
|
| 1704 |
datamash: fix incorrect int size for percetiles |
| 1705 |
On SunOS 5.11/i86pc, sizeof(size_t)==4 while sizeof(uintmax_t)==8. |
| 1706 |
This leads to incorrect printf output. |
| 1707 |
Reported by Dagobert Michelseni in |
| 1708 |
https://lists.gnu.org/archive/html/bug-datamash/2017-08/msg00004.html . |
| 1709 |
|
| 1710 |
A better long term solution is to switch entirely from size_t to uintmax_t. |
| 1711 |
|
| 1712 |
* src/op-parser.c, |
| 1713 |
src/datamash.c: use PRIuMAX for printf, and convert to uintmax_t. |
| 1714 |
|
| 1715 |
2017-08-10 Assaf Gordon <[email protected]> |
| 1716 |
|
| 1717 |
maint: improve bash-completion script installation (again) |
| 1718 |
Reported by Bruno Haible in |
| 1719 |
https://lists.gnu.org/archive/html/bug-datamash/2017-08/msg00002.html: |
| 1720 |
the current installation defaults to global location |
| 1721 |
(e.g /usr/share/bash-completion.d) and does not work with non-root |
| 1722 |
installation. Change default to local installation, with option to |
| 1723 |
auto-detect the system's global location. |
| 1724 |
Usage: |
| 1725 |
./configure --with-bash-completion-dir=[no|local|global|PATH] |
| 1726 |
See README for more details. |
| 1727 |
|
| 1728 |
* configure.ac: Change --with-bash-copmletion-dir processing. |
| 1729 |
* NEWS: Mention this. |
| 1730 |
* README: Document this. |
| 1731 |
|
| 1732 |
2017-08-08 Assaf Gordon <[email protected]> |
| 1733 |
|
| 1734 |
bash-completion: add range,perc operations |
| 1735 |
* contrib/bash-completion/datamash: Add range/perc (percentile) |
| 1736 |
operations to list of suggested completions. |
| 1737 |
|
| 1738 |
2017-06-08 Assaf Gordon <[email protected]> |
| 1739 |
|
| 1740 |
datamash: add lines/fields option to 'check' operation |
| 1741 |
Datamash will fail with non-zero exit code if the input does not |
| 1742 |
have the expected number of lines/fields. |
| 1743 |
|
| 1744 |
Typical usage: |
| 1745 |
|
| 1746 |
$ seq 10 | paste - - | datamash check 2 fields && echo ok |
| 1747 |
5 lines, 2 fields |
| 1748 |
ok |
| 1749 |
|
| 1750 |
$ seq 10 | paste - - | datamash check 6 fields && echo ok |
| 1751 |
line 1 (2 fields): |
| 1752 |
1 2 |
| 1753 |
datamash: check failed: line 1 has 2 fields (expecting 6) |
| 1754 |
|
| 1755 |
$ seq 10 | datamash check 11 lines |
| 1756 |
datamash: check failed: input had 10 lines (expecting 11) |
| 1757 |
|
| 1758 |
* NEWS: Mention new options. |
| 1759 |
* src/datamash.c (tabular_check_file): Implement additional checks. |
| 1760 |
* src/op-parser.h (struct mode_check_params_t): New struct to hold |
| 1761 |
options. (struct datamash_ops): Add new struct. |
| 1762 |
* src/op-parser.c (parse_check_line_or_field, parse_mode_check): New |
| 1763 |
functions to parse 'check' options. |
| 1764 |
(parse_mode): Parse option in 'check' mode. |
| 1765 |
* tests/datamash-parser.pl: Add parsing tests. |
| 1766 |
* tests/datamash-check.pl: Add 'check' tests. |
| 1767 |
* Makefile.am: Add 'datamash-check.pl' test script. |
| 1768 |
* man/datamash.x: Add 'check' examples. |
| 1769 |
* doc/datamash.texi: Expand 'check' section. |
| 1770 |
|
| 1771 |
2017-06-07 Assaf Gordon <[email protected]> |
| 1772 |
|
| 1773 |
maint: mark more lines as LCOV_EXCL_LINE for more accurate coverage |
| 1774 |
|
| 1775 |
2017-05-26 Assaf Gordon <[email protected]> |
| 1776 |
|
| 1777 |
gnulib: update to latest |
| 1778 |
|
| 1779 |
2017-05-26 Assaf Gordon <[email protected]> |
| 1780 |
|
| 1781 |
datamash: free crosstab memory if LINT |
| 1782 |
Detected by Covrity scan (CID 72245, 72246). |
| 1783 |
|
| 1784 |
* src/crosstab.c (print_crosstab): Call free() if lint is enabled. |
| 1785 |
|
| 1786 |
2017-05-26 Assaf Gordon <[email protected]> |
| 1787 |
|
| 1788 |
build: add lint option to configure script |
| 1789 |
Usage: ./configure --enable-lint |
| 1790 |
|
| 1791 |
Use during development to supress non-critical warnings. |
| 1792 |
|
| 1793 |
* configure.ac: Add --enable-lint option. |
| 1794 |
* HACKING: Mention this option. |
| 1795 |
|
| 1796 |
2017-05-09 Assaf Gordon <[email protected]> |
| 1797 |
|
| 1798 |
build: add src/die.h to source files list |
| 1799 |
Omitted from previous commit v1.1.1-10-gedab279 |
| 1800 |
"datamash: use die() instead of error()". |
| 1801 |
|
| 1802 |
* Makefile.am (datamash_SOURCES): Add missing file. |
| 1803 |
|
| 1804 |
2017-05-09 Assaf Gordon <[email protected]> |
| 1805 |
|
| 1806 |
datamash: new operation 'range' |
| 1807 |
Calculate the range of values in the group: |
| 1808 |
|
| 1809 |
$ printf '%s\n' 5 3 14 6 | datamash range 1 |
| 1810 |
11 |
| 1811 |
|
| 1812 |
Using 'range' is equivalent to: |
| 1813 |
$ printf '%s\n' 5 3 14 6 | datamash min 1 max 1 | awk '{print $2-$1}' |
| 1814 |
11 |
| 1815 |
|
| 1816 |
Suggested by Kingsley G. Morse Jr. in |
| 1817 |
https://lists.gnu.org/archive/html/bug-datamash/2017-05/msg00000.html . |
| 1818 |
|
| 1819 |
* NEWS: Mention new operation. |
| 1820 |
* src/datamash.c: (usage): Add new op. |
| 1821 |
* src/op-defs.{h,c}: Define new OP_RANGE. |
| 1822 |
* src/field-ops.{h,c}: Implement new OP_RANGE. |
| 1823 |
* tests/datamash-stats.pl: Test new operation. |
| 1824 |
* tests/datamash-tests-2.pl: Test new operation with various inputs. |
| 1825 |
* doc/datamash.texi, man/datamash.x: Mention new operation. |
| 1826 |
|
| 1827 |
2017-05-09 Assaf Gordon <[email protected]> |
| 1828 |
|
| 1829 |
build: add 'fallthrough' comments to supress gcc-7.1 warnings |
| 1830 |
gcc-7.1 warns about: |
| 1831 |
src/op-parser.c:491:10: error: this statement may fall through |
| 1832 |
[-Werror=implicit-fallthrough=] |
| 1833 |
if (scan_val_int>0) |
| 1834 |
^ |
| 1835 |
|
| 1836 |
The fallthrough is intentional - add an explicit comment that will |
| 1837 |
detected by the compiler and supress the warnings. |
| 1838 |
|
| 1839 |
* src/op-parser.c: Add explicit 'fallthrough' comment in two intentional |
| 1840 |
fall through cases. |
| 1841 |
|
| 1842 |
2017-05-09 Assaf Gordon <[email protected]> |
| 1843 |
|
| 1844 |
datamash: use die() instead of error() |
| 1845 |
Copied from GNU coreutils v8.25-79-g492dcb2, |
| 1846 |
http://git.savannah.gnu.org/cgit/coreutils.git/commit/?id=492dcb2eb1: |
| 1847 |
"die() has the advantage of being apparent to the compiler |
| 1848 |
that it doesn't return, which will avoid warnings in some cases, |
| 1849 |
and possibly generate better code." |
| 1850 |
|
| 1851 |
* src/die.h: Copied from GNU coreutils. |
| 1852 |
* src/op-parser.c, |
| 1853 |
src/op-scanner.c, |
| 1854 |
src/field-ops.c, |
| 1855 |
src/datamash.c: Changed 'error(EXIT_FAILURE,...)' to 'die(...)'. |
| 1856 |
|
| 1857 |
2017-05-09 Assaf Gordon <[email protected]> |
| 1858 |
|
| 1859 |
build: require pkg-config>=0.28 when building from git |
| 1860 |
configure.ac uses the PKG_CHECK_VALUE macro from the pkg-config' pkg.m4 |
| 1861 |
file for bash-completion directory detection. This macro is not |
| 1862 |
available in older pkg-config versions. |
| 1863 |
Does is only required when building from git and running ./bootstrap. |
| 1864 |
Building from tarball does not require pkg-config at all. |
| 1865 |
|
| 1866 |
* bootstrap.conf: Specify minimum version for pkg-config. |
| 1867 |
|
| 1868 |
2017-05-03 Assaf Gordon <[email protected]> |
| 1869 |
|
| 1870 |
build: remove bashcompdir from Makefile.am |
| 1871 |
It is already defined in configure.ac (warning generated by autoreconf). |
| 1872 |
|
| 1873 |
* Makefile.am: Remove bashcompdir. |
| 1874 |
|
| 1875 |
2017-04-19 Assaf Gordon <[email protected]> |
| 1876 |
|
| 1877 |
doc: expand build instructions in README and HACKING.md |
| 1878 |
Explain how to build from git. |
| 1879 |
|
| 1880 |
2017-04-19 Assaf Gordon <[email protected]> |
| 1881 |
|
| 1882 |
build: require 'pkg-config' when bootstrapping |
| 1883 |
pkg-config is used to detect the bash-completion directory. |
| 1884 |
It is optional during ./configure (and ./configure will succeed even if |
| 1885 |
pkg-config is not installed), but pkg.m4 is required by ./bootstrap |
| 1886 |
for the PKG_CHECK_VAR in 'configure.ac'. |
| 1887 |
|
| 1888 |
* bootstrap.conf: Add pkg-config requirement. |
| 1889 |
|
| 1890 |
2017-04-06 Assaf Gordon <[email protected]> |
| 1891 |
|
| 1892 |
gnulib: update to latest |
| 1893 |
|
| 1894 |
2017-03-24 Barry Nisly <[email protected]> |
| 1895 |
|
| 1896 |
datamash: new operation 'perc' (percentiles) |
| 1897 |
Usage: |
| 1898 |
$ seq 100 | datamash --header-out perc:95 1 |
| 1899 |
perc:95(field-1) |
| 1900 |
95.05 |
| 1901 |
|
| 1902 |
See https://lists.gnu.org/archive/html/bug-datamash/2017-03/msg00000.html . |
| 1903 |
|
| 1904 |
* NEWS: Mention new operation. |
| 1905 |
* src/datamash.c: (usage): Add new op. |
| 1906 |
(print_column_headers): Print percentile value in headers. |
| 1907 |
* src/op-defs.{h,c}: Define new OP_PERCENTILE. |
| 1908 |
* src/field-ops.{h,c}: Implement new OP_PERCENTILE. |
| 1909 |
* src/op-parser.c: (set_op_params): Handle 'perc:N' paramater. |
| 1910 |
* tests/datamash-stats.pl: Test new operation. |
| 1911 |
* tests/datamash-tests.pl: Test 'perc' headers. |
| 1912 |
* doc/datamash.texi, man/datamash.x: Mention new operation. |
| 1913 |
* tests/datamash-error-msgs.pl: Test 'perc' parameter error messages. |
| 1914 |
|
| 1915 |
2017-03-17 Assaf Gordon <[email protected]> |
| 1916 |
|
| 1917 |
build: install bash-completion script by default (if possible) |
| 1918 |
If the 'bash-completion' package is instaleld with pkg-config support, |
| 1919 |
detect the default bash-completion directory and install the datamash |
| 1920 |
completion script there (typically: /usr/share/bash-completion/completions). |
| 1921 |
Otherwise, install in /usr/local/share/datamash/bash-completion.d (as |
| 1922 |
before). |
| 1923 |
|
| 1924 |
Disable with `./configure ---with-bash-completion-dir=no`. |
| 1925 |
Set custom path with `./configure ---with-bash-completion-dir=PATH`. |
| 1926 |
|
| 1927 |
* README: Mention bash-completion options to './configure'. |
| 1928 |
* configure.ac: Add --with-bash-completion-dir=DIR option, and |
| 1929 |
autodetect bash-completion directory using pkg-config. |
| 1930 |
* Makefile.am: Add bash-completion target (if enabled). |
| 1931 |
|
| 1932 |
2017-03-17 Assaf Gordon <[email protected]> |
| 1933 |
|
| 1934 |
maint: update .gitignore |
| 1935 |
|
| 1936 |
gnulib: update to latest |
| 1937 |
|
| 1938 |
2017-01-20 Assaf Gordon <[email protected]> |
| 1939 |
|
| 1940 |
maint: update bootstrap script to latest |
| 1941 |
* bootstrap: Copy latest version from gnulib/build-aux/bootstrap. |
| 1942 |
|
| 1943 |
maint: update NEWS |
| 1944 |
|
| 1945 |
gnulib: update to latest |
| 1946 |
|
| 1947 |
2017-01-11 Assaf Gordon <[email protected]> |
| 1948 |
|
| 1949 |
build: fix out-of-tree builds without dep-tracking |
| 1950 |
Create src,lib,doc,tests subdirectories at the end of |
| 1951 |
'configure', preventing build problems when building out of tree |
| 1952 |
with --disable-dependency-tracking. |
| 1953 |
Inspired by sed's https://bugs.gnu.org/25371 . |
| 1954 |
|
| 1955 |
* configure.ac: Call AS_MKDIR_P() to create subdirectories. |
| 1956 |
|
| 1957 |
2017-01-11 Assaf Gordon <[email protected]> |
| 1958 |
|
| 1959 |
maint: update copyright year to 2017 |
| 1960 |
Automatic update with 'make update-copyright'. |
| 1961 |
|
| 1962 |
maint: add gnulib's 'update-copyright' module |
| 1963 |
* bootstrap.conf: Add 'update-copyright'. |
| 1964 |
* cfg.mk: Define 'update-copyright-env' with relevant values for |
| 1965 |
'make update-copyright' |
| 1966 |
|
| 1967 |
maint: update gnulib to latest |
| 1968 |
* m4/.gitignore: Ignore few more m4 files. |
| 1969 |
|
| 1970 |
2016-09-23 Assaf Gordon <[email protected]> |
| 1971 |
|
| 1972 |
doc: fix man page escapes |
| 1973 |
Suggested by Dave Love in |
| 1974 |
http://lists.gnu.org/archive/html/bug-datamash/2016-02/msg00002.html |
| 1975 |
|
| 1976 |
2016-09-23 Assaf Gordon <[email protected]> |
| 1977 |
|
| 1978 |
datamash: bugfix: trailing delimiter should count as an empty field |
| 1979 |
In version 1.1.0 and earlier, trailing delimiter at the end of the line |
| 1980 |
did not count as an empty field: |
| 1981 |
|
| 1982 |
$ printf "a:b:\n" | datamash -t: check |
| 1983 |
1 line, 2 fields |
| 1984 |
|
| 1985 |
After bugfix: |
| 1986 |
|
| 1987 |
$ printf "a:b:\n" | datamash -t: check |
| 1988 |
1 line, 3 fields |
| 1989 |
|
| 1990 |
Related to bug report by Sanjeev Kumar Sharma in |
| 1991 |
http://lists.gnu.org/archive/html/bug-datamash/2016-09/msg00000.html |
| 1992 |
|
| 1993 |
2016-09-23 Assaf Gordon <[email protected]> |
| 1994 |
|
| 1995 |
datamash: 'transpose' bugfix (missing values in last line) |
| 1996 |
Missing values in the last line would cause fields to be silently dropped: |
| 1997 |
|
| 1998 |
$ printf "1\t2\na\n" | datamash --no-strict transpose |
| 1999 |
1 a |
| 2000 |
|
| 2001 |
After bugfix: |
| 2002 |
|
| 2003 |
$ printf "1\t2\na\n" | datamash --no-strict transpose |
| 2004 |
1 a |
| 2005 |
2 N/A |
| 2006 |
|
| 2007 |
2016-01-17 Assaf Gordon <[email protected]> |
| 2008 |
|
| 2009 |
maint: update date in NEWS |
| 2010 |
* NEWS: update release version, metion version bump. |
| 2011 |
|
| 2012 |
doc: add 'field delimiters' section to manual |
| 2013 |
* doc/datamash.texi: add new 'field delimiters' section. |
| 2014 |
|
| 2015 |
2016-01-03 Assaf Gordon <[email protected]> |
| 2016 |
|
| 2017 |
maint: update gnulib to latest version |
| 2018 |
* gnulib: update to latest version with copyright year adjusted |
| 2019 |
* tests/init.sh, |
| 2020 |
bootstrap: sync with latest gnulib. |
| 2021 |
|
| 2022 |
maint: update all copyright year number ranges |
| 2023 |
|
| 2024 |
2016-01-01 Assaf Gordon <[email protected]> |
| 2025 |
|
| 2026 |
maint: rename pmccabe makefile target name |
| 2027 |
* Makefile.am: rename 'CYCLO_SOURCES' to 'cyclo_sources', to avoid |
| 2028 |
confusing autoreconf about missing library 'CYCLO'. |
| 2029 |
|
| 2030 |
doc: add rounding,binning sections to manual |
| 2031 |
|
| 2032 |
doc: add 'crosstab' section to manual |
| 2033 |
|
| 2034 |
doc: add 'check' usage example |
| 2035 |
|
| 2036 |
doc: add 'groupby on /etc/passwd' usage example section |
| 2037 |
|
| 2038 |
doc: merge reverse+transpose nodes |
| 2039 |
|
| 2040 |
doc: added 'Usage Examples' chapter |
| 2041 |
|
| 2042 |
doc: reword 'overview' section |
| 2043 |
|
| 2044 |
doc: add custom CSS to the texinfo HTML output |
| 2045 |
* doc/datamash-texinfo.css: new custom styles |
| 2046 |
* doc/local.mk: use new CSS file in 'make html' |
| 2047 |
* Makefile.am: use new CSS file in 'make web-manual' |
| 2048 |
|
| 2049 |
doc: update manual with new operations |
| 2050 |
|
| 2051 |
2015-12-26 Benno Schulenberg <[email protected]> |
| 2052 |
|
| 2053 |
datamash: improve an error message |
| 2054 |
|
| 2055 |
datamash: gettextize an option description as a whole |
| 2056 |
|
| 2057 |
datamash: remove redundant header, and refer correctly to the man page |
| 2058 |
|
| 2059 |
datamash: improve the punctuation and grammar of the usage text |
| 2060 |
|
| 2061 |
2015-12-20 Assaf Gordon <[email protected]> |
| 2062 |
|
| 2063 |
doc: update NEWS for upcoming version |
| 2064 |
|
| 2065 |
maint: update gnulib submodule to latest version |
| 2066 |
|
| 2067 |
2015-12-18 Assaf Gordon <[email protected]> |
| 2068 |
|
| 2069 |
datamash: new operation: strbin (binning strings to numeric value) |
| 2070 |
hashes a text string into a number, returns values from 0 to #bins |
| 2071 |
(default 10). Can be used to bin many free-text input values into a |
| 2072 |
finite (small) set of bins. Identical strings will be hashed to same |
| 2073 |
numeric values. |
| 2074 |
|
| 2075 |
Examples: |
| 2076 |
assign a bin (0 to 9) to a list of strings (bin number added |
| 2077 |
as last field): |
| 2078 |
|
| 2079 |
seq 100 | xargs printf "user-%d\n" \ |
| 2080 |
| datamash --full strbin 1 |
| 2081 |
|
| 2082 |
identical input values will be assigned identical bin number: |
| 2083 |
|
| 2084 |
( seq 100 ; seq 20 ) | xargs printf "user-%d\n" \ |
| 2085 |
| datamash --full strbin 1 |
| 2086 |
|
| 2087 |
Splitting input values into 10 output files, while keeping |
| 2088 |
identical keys in the same file: |
| 2089 |
|
| 2090 |
( seq 100 ; seq 20 ) | xargs printf "user-%d\n" \ |
| 2091 |
| datamash --full strbin 1 \ |
| 2092 |
| awk '{print $0 > $NF ".txt"}' |
| 2093 |
|
| 2094 |
* bootstrap.conf: add gnulib's hash-pjw-bare module |
| 2095 |
* src/op-defs.{c,h}: add new op constant |
| 2096 |
* src/field-ops.{c,h}: implement new operation |
| 2097 |
* src/op-parser.c: strbin can take a parameter (# bins) |
| 2098 |
* src/datamash.c: update usage() |
| 2099 |
* man/datamash.x: update man page |
| 2100 |
* contrib/bash-completion/datamash: add new op |
| 2101 |
* tests/datamash-error-msgs.pl, |
| 2102 |
tests/datanash-strbin: test new operation |
| 2103 |
* Makefile.am: add new tests |
| 2104 |
|
| 2105 |
2015-12-18 Assaf Gordon <[email protected]> |
| 2106 |
|
| 2107 |
maint: use gnulib's pmccabe2html module |
| 2108 |
Generate report with: |
| 2109 |
make cyclo-datamash.html |
| 2110 |
|
| 2111 |
* bootstrap.conf: add the pmccabe2html module |
| 2112 |
* Makefile.am: add new target |
| 2113 |
* .gitignore: ignore generated html file |
| 2114 |
|
| 2115 |
2015-11-13 Assaf Gordon <[email protected]> |
| 2116 |
|
| 2117 |
maint: remove superfluous 'with' from doc's "invariant section" |
| 2118 |
pointed by Debian/Ubuntu package maintainer ([email protected]). |
| 2119 |
|
| 2120 |
* doc/datamash.texi: remove 'with' from 'invariant section' of GFDL |
| 2121 |
to comply with official wording. |
| 2122 |
|
| 2123 |
2015-07-14 Assaf Gordon <[email protected]> |
| 2124 |
|
| 2125 |
build: prefer %PRIuMAX to %zu in printf |
| 2126 |
%zu doesn't play well with mingw cross-compilers. |
| 2127 |
|
| 2128 |
* src/column-headers.c, src/op-parser.c: include <inttypes.h>, |
| 2129 |
use %PRIuMAX instead of '%zu' in printf . |
| 2130 |
|
| 2131 |
2015-07-14 Assaf Gordon <[email protected]> |
| 2132 |
|
| 2133 |
build: add gnulib's stpcpy module (for mingw) |
| 2134 |
* bootstrap.conf: add stpcpy. |
| 2135 |
|
| 2136 |
2015-07-14 Assaf Gordon <[email protected]> |
| 2137 |
|
| 2138 |
datamash: fail on invalid cov/pearson input |
| 2139 |
Unequal number of items can occur if ignoring N/A values. |
| 2140 |
|
| 2141 |
* src/field-ops.c: fail if the two fields have different number of |
| 2142 |
items. |
| 2143 |
* tests/datamash-pair-tests.pl: tests such inputs. |
| 2144 |
|
| 2145 |
2015-07-14 Assaf Gordon <[email protected]> |
| 2146 |
|
| 2147 |
datamash: fail on incorrect usage |
| 2148 |
* src/op-parser.c: fail when primary operations are given fields |
| 2149 |
ranges or pairs (e.g. 'groupby 1:2'). fail when crosstab is |
| 2150 |
given more than one operation. |
| 2151 |
* tests/datamash-{crosstab,error-msgs,parser}.pl: add new tests. |
| 2152 |
|
| 2153 |
doc: improve man page (new ops, examples) |
| 2154 |
* man/datamash.x: mention new operations, |
| 2155 |
use 'field' instead of 'column', |
| 2156 |
add more examples, improve formatting. |
| 2157 |
|
| 2158 |
datamash: improve usage() |
| 2159 |
* src/datamash.c: improve usage(), mention new operations, |
| 2160 |
use 'field' instead of 'column'. |
| 2161 |
|
| 2162 |
2015-07-14 Assaf Gordon <[email protected]> |
| 2163 |
|
| 2164 |
new operations: round,floor,ceil,trunc,frac |
| 2165 |
typical usage: |
| 2166 |
|
| 2167 |
$ (echo X ; seq -1 0.5 1 ) \ |
| 2168 |
| datamash -H --full round 1 floor 1 ceil 1 trunc 1 frac 1 |
| 2169 |
X round(X) floor(X) ceil(X) trunc(X) frac(X) |
| 2170 |
-1.0 -1 -1 -1 -1 0 |
| 2171 |
-0.5 -1 -1 0 0 -0.5 |
| 2172 |
0.0 0 0 0 0 0 |
| 2173 |
0.5 1 0 1 0 0.5 |
| 2174 |
1.0 1 1 1 1 0 |
| 2175 |
|
| 2176 |
* bootstrap.conf: add gnulib's floorl,ceill,roundl,modfl modules. |
| 2177 |
* src/op-defs.{c,h}: add new operations constants. |
| 2178 |
* src/field-ops.c: handle new operations. |
| 2179 |
* tests/datamash-tests-2.pl: add tests. |
| 2180 |
* contrib/bash-completion/datamash: add new operations. |
| 2181 |
|
| 2182 |
2015-07-14 Assaf Gordon <[email protected]> |
| 2183 |
|
| 2184 |
utils: add functions for long-double zero handling |
| 2185 |
* src/utils.c: is_zero(), is_signed_zero() - retruns true/false. |
| 2186 |
pos_zero(): negates a negative zero, nop otherwise. |
| 2187 |
|
| 2188 |
2015-07-14 Assaf Gordon <[email protected]> |
| 2189 |
|
| 2190 |
new operation: bin (binning into buckets) |
| 2191 |
typical usage (bin into buckets of size 5): |
| 2192 |
|
| 2193 |
$ seq 0 10 | ./datamash bin:5 1 |
| 2194 |
0 |
| 2195 |
0 |
| 2196 |
0 |
| 2197 |
0 |
| 2198 |
0 |
| 2199 |
5 |
| 2200 |
5 |
| 2201 |
5 |
| 2202 |
5 |
| 2203 |
5 |
| 2204 |
10 |
| 2205 |
|
| 2206 |
* src/op-defs.{c,h}: add new operation constant and name. |
| 2207 |
* src/op-parser.c: special handling for operation with an optional |
| 2208 |
parameter. |
| 2209 |
* src/field-ops.h: add optional parameter to struct fieldop. |
| 2210 |
* src/field-ops.c: implement binning operation. |
| 2211 |
* tests/*.pl: add tests |
| 2212 |
|
| 2213 |
2015-07-14 Assaf Gordon <[email protected]> |
| 2214 |
|
| 2215 |
datamash: reword error messages |
| 2216 |
* src/op-parser.c: use 'field' instead 'column', standarize error |
| 2217 |
messages. |
| 2218 |
* tests/*.pl: adapt tests to new wording. |
| 2219 |
|
| 2220 |
2015-07-14 Assaf Gordon <[email protected]> |
| 2221 |
|
| 2222 |
build: fix long-double precision under NetBSD |
| 2223 |
Under NetBSD (and others?) default precision is set to 'double' |
| 2224 |
even for 'long double' variables. This results in incorrect |
| 2225 |
results for 'roundl' and crahes for 'expl' (when using |
| 2226 |
gnulib's implementations. |
| 2227 |
Force 'long double' precision. See gnulib's 'lib/fpucw.h' file |
| 2228 |
for many more details. |
| 2229 |
|
| 2230 |
* bootstrap.conf: add fpucw module. |
| 2231 |
* src/datamash.c: force 'long double' precision. |
| 2232 |
|
| 2233 |
2015-07-14 Assaf Gordon <[email protected]> |
| 2234 |
|
| 2235 |
tests: add rmdup expensive tests |
| 2236 |
* src/datamash.c: add undocumented option to reduce initial size of |
| 2237 |
rmdup structures (forcing more frequent reallocations). |
| 2238 |
* tests/datamash-valgrind.sh: use new option, validate results. |
| 2239 |
|
| 2240 |
tests: add pcov with header |
| 2241 |
* tests/datamash-pair-tests.pl: tests pcov (taking two fields) with |
| 2242 |
output headers (print 1 field, 1 header). |
| 2243 |
|
| 2244 |
2015-07-14 Assaf Gordon <[email protected]> |
| 2245 |
|
| 2246 |
refactor: create new scanner module |
| 2247 |
Use proper tokenizing instead of relying on argc/argv 'tokens' with |
| 2248 |
ad-hoc string manipulation. In the future, this will allow accepting the |
| 2249 |
script as on string (like sed's -e). |
| 2250 |
|
| 2251 |
* bootstrap.conf: add gnulib's c-type module |
| 2252 |
* src/op-scanner.{c,h}: new scanner module, improved tokenizing. |
| 2253 |
* src/op-parser.c: use new scanner, support _STANDALONE_ mode for |
| 2254 |
quicker testing (without autotools,gnulib). |
| 2255 |
* src/op-defs.c: prefer name 'groupby' to 'grouping' when reporting errors. |
| 2256 |
* src/system.h: support_STANDALONE_ mode for |
| 2257 |
quicker testing (without autotools,gnulib). |
| 2258 |
* tests/datamash-{tests,parser,crosstab}.pl: adapt error message text |
| 2259 |
to new parser (no change in functionality). |
| 2260 |
* Makefile.am: include new scanner. |
| 2261 |
* po/POTFILES.in: include new scanner. |
| 2262 |
|
| 2263 |
2015-06-26 Assaf Gordon <[email protected]> |
| 2264 |
|
| 2265 |
build: move 'assert.h' to 'system.h' |
| 2266 |
* src/op-defs.c: move 'assert.h' from here... |
| 2267 |
* src/system.h: to here. |
| 2268 |
avoids 'syntax-check' warings about including 'assert.h' without using |
| 2269 |
it (it is used indirectly with 'internal_error()' macro). |
| 2270 |
|
| 2271 |
build: conditionally include minmax.h |
| 2272 |
Don't include "lib/minmax.h" if MAX is already defined. |
| 2273 |
Seems redundant (per the comment in minmax.h), but tcc 0.9.26 still fails. |
| 2274 |
|
| 2275 |
maint: force -std=c99 with static analysis |
| 2276 |
* cfg.mk: force -std=c99 when using clang's scan-build program, as it |
| 2277 |
does not to do so automatically, and compliation fails. |
| 2278 |
|
| 2279 |
maint: improve configure messages |
| 2280 |
* configure.ac: simplify printing of examples directory; |
| 2281 |
print bash-completion directory. |
| 2282 |
|
| 2283 |
2015-06-26 Assaf Gordon <[email protected]> |
| 2284 |
|
| 2285 |
datamash: improve,install bash-completion script |
| 2286 |
By default, script installed to program's datadir, e.g. |
| 2287 |
/usr/local/datamash/share/bash-completion.d/datamash |
| 2288 |
and the user can manually source it from ~/.bashrc. |
| 2289 |
|
| 2290 |
Optionally, can be installed to another location, e.g. |
| 2291 |
./configure --with-bash-completion-dir=/etc/bash_completion.d |
| 2292 |
to be automatically loaded. |
| 2293 |
|
| 2294 |
* contrib/bash-completion/datamash: fix script, improve suggestions, |
| 2295 |
do not use '_init_completion' (not available in bash-comp<1.9) |
| 2296 |
* configure.ac: add option --with-bash-completion-dir |
| 2297 |
* Makefile.am: install script. |
| 2298 |
|
| 2299 |
2015-06-26 Assaf Gordon <[email protected]> |
| 2300 |
|
| 2301 |
datamash: new operation: Pearson Correlation |
| 2302 |
usage (calculate pearson (population) correlation coefficient on fields 1,2): |
| 2303 |
datamash ppearson 1:2 < 1.txt |
| 2304 |
|
| 2305 |
* src/op-defs.{c,h}: new op enums. |
| 2306 |
* src/op-parser.c: handle new op. |
| 2307 |
* src/utils.{c,h}: implement pearson correlation function. |
| 2308 |
* src/field-ops.c: handle new op. |
| 2309 |
* tests/datamash-pair-tests.pl: add tests |
| 2310 |
|
| 2311 |
2015-06-26 Assaf Gordon <[email protected]> |
| 2312 |
|
| 2313 |
datamash: new operation: covariance |
| 2314 |
usage (calculate population-covariance on fields 1,2): |
| 2315 |
datamash pcov 1:2 < 1.txt |
| 2316 |
|
| 2317 |
* src/op-defs.{c,h}: new op enums. |
| 2318 |
* src/op-parser.c: handle new operation, with special parsing for column |
| 2319 |
pairs (e.g. '1:2'). |
| 2320 |
* src/field-ops.{c,h}: implement new operation, and add master/slave |
| 2321 |
field-op options (as covariance is implemented as two linked field |
| 2322 |
ops, one for each column). |
| 2323 |
* src/datamash.c: skip 'slave' field-ops when printing. |
| 2324 |
* tests/datamash-parser.pl: test column-pairs parsing |
| 2325 |
* tests/datamash-pair-tests.pl: test column-pair operations. |
| 2326 |
* tests/datamash-valgrind.sh: test covariance operation. |
| 2327 |
* Makefile.am: include new tests. |
| 2328 |
|
| 2329 |
2015-06-26 Assaf Gordon <[email protected]> |
| 2330 |
|
| 2331 |
datamash: utils: add covariance implementation |
| 2332 |
* src/utils.{c,h}: covariance_value() - new function. |
| 2333 |
|
| 2334 |
2015-06-26 Assaf Gordon <[email protected]> |
| 2335 |
|
| 2336 |
datamash: improve parser, allow field range |
| 2337 |
allows: datamash sum 1-5,7-9 |
| 2338 |
|
| 2339 |
* src/op-parser.c: improve field parsing |
| 2340 |
* tests/datamash-parser.pl: add new tests |
| 2341 |
|
| 2342 |
2015-06-26 Assaf Gordon <[email protected]> |
| 2343 |
|
| 2344 |
datamash: new feature: check |
| 2345 |
reports back number of lines,fields - or exit with failure if the input |
| 2346 |
lines do have have same number of fields. |
| 2347 |
|
| 2348 |
usage: |
| 2349 |
$ seq 10 | paste - - | datamash check |
| 2350 |
5 lines, 2 fields |
| 2351 |
|
| 2352 |
$ seq 9 | paste - - | datamash check |
| 2353 |
line 4 (2 fields): |
| 2354 |
7 8 |
| 2355 |
line 5 (1 fields): |
| 2356 |
9 |
| 2357 |
./datamash: check failed: line 5 has 1 fields (previous line had 2) |
| 2358 |
|
| 2359 |
* src/datamash.c: tabular_check_file() - new function. |
| 2360 |
* src/op-defs.{h,c}: new mode enum. |
| 2361 |
* src/op-parser.c: handle new mode. |
| 2362 |
* tests/datamash-check-tabular.pl: add tests. |
| 2363 |
* Makefile.am: add new test file. |
| 2364 |
|
| 2365 |
2015-06-26 Assaf Gordon <[email protected]> |
| 2366 |
|
| 2367 |
maint: git-ignore more files |
| 2368 |
|
| 2369 |
2015-06-26 Assaf Gordon <[email protected]> |
| 2370 |
|
| 2371 |
datamash: new feature: crosstab |
| 2372 |
usage: |
| 2373 |
datamash crosstab 1,2 sum 3 |
| 2374 |
|
| 2375 |
* src/crosstab.{c,h} - implementation |
| 2376 |
* src/datamash.c - handle new crosstab processing mode. |
| 2377 |
* src/op-defs.{c,h} - additional crossab constants. |
| 2378 |
* src/op-parser.c - special handling for crosstab mode. |
| 2379 |
* tests/datamash-crosstab.pl - new tests. |
| 2380 |
* Makefile.am - add new files. |
| 2381 |
|
| 2382 |
2015-06-26 Assaf Gordon <[email protected]> |
| 2383 |
|
| 2384 |
maint: add GL_ATTRIBUTE_PURE where needed |
| 2385 |
|
| 2386 |
maint: fix NEWS syntax-check |
| 2387 |
* NEWS: add missing empty line. |
| 2388 |
|
| 2389 |
2015-06-26 Assaf Gordon <[email protected]> |
| 2390 |
|
| 2391 |
maint: add coverage hints |
| 2392 |
1. Add LCOV_EXCL_BR_LINE to skip few switch cases where the default case |
| 2393 |
should never be reached. |
| 2394 |
2. Add LCOV_EXCL_LINE. |
| 2395 |
|
| 2396 |
LCOV_EXCL_BR_LINE requires geninfo from lcov>=1.11 . |
| 2397 |
|
| 2398 |
2015-06-26 Assaf Gordon <[email protected]> |
| 2399 |
|
| 2400 |
maint: remove unused strcnt module |
| 2401 |
|
| 2402 |
datamash: improve parser module, add tests |
| 2403 |
* src/datamash.c: remove redundant left-over code. |
| 2404 |
* src/op-parser.c: improve token processing |
| 2405 |
* src/op-defs.c: rename 'grp' alias to 'gb' (=groupby) |
| 2406 |
* tests/datamash-parser.pl: new tests |
| 2407 |
* Makefile.am: add new tests. |
| 2408 |
|
| 2409 |
maint: fix syntax-check errors |
| 2410 |
|
| 2411 |
datamash: move config vars to text-options |
| 2412 |
* src/datamash.c,src/field-ops.c: move several configuration |
| 2413 |
parameters from here ... |
| 2414 |
* src/text-options.{c,h}: ... to here. |
| 2415 |
|
| 2416 |
maint: fix empty variable init |
| 2417 |
* src/field-ops.c: CLANG complained about '{0}'. replace with memset(). |
| 2418 |
|
| 2419 |
refactor: move field-operation list. |
| 2420 |
* src/field-ops.{c,h}: refactored to handle just one struct at a time. |
| 2421 |
private functions removed from the header file. |
| 2422 |
* src/op-parser.{c,h}: the list of field-ops is handled here. |
| 2423 |
* src/datamash.c: adapted as needed. |
| 2424 |
|
| 2425 |
2015-06-26 Assaf Gordon <[email protected]> |
| 2426 |
|
| 2427 |
refactor: create parsing module |
| 2428 |
1. Better handling of processing modes (e.g. group-by/transpose/reverse/rmdup) |
| 2429 |
vs operations (e.g sum/count/min/max/mean). |
| 2430 |
2. Support new syntax: |
| 2431 |
datamash groupby 1,2 sum 3 |
| 2432 |
equivalent to: |
| 2433 |
datamash -g 1,2 sum 3 |
| 2434 |
|
| 2435 |
* src/op-defs.{c,h} - list of processing modes and operations. |
| 2436 |
* src/op-parser.{c,h} - parsing module. returns structure with parsed |
| 2437 |
information (mode, grouping fields, operations, etc.). |
| 2438 |
* src/op-fields.{c,h} - adapt to new parsing, remove old pasring functions. |
| 2439 |
* src/datamash.c - adapt to new parsing module. |
| 2440 |
* tests/*.pl - minor changes to error messages. |
| 2441 |
|
| 2442 |
2015-06-26 Assaf Gordon <[email protected]> |
| 2443 |
|
| 2444 |
refactor: extract group-processing to a function |
| 2445 |
* src/datamash.c: |
| 2446 |
process_group(): new function to print/summarize each group. |
| 2447 |
|
| 2448 |
refactor: fields-ops printing |
| 2449 |
* src/field.ops{h,c}: |
| 2450 |
field_op_summarize_empty(), field_op_summarize(): |
| 2451 |
store results in 'op->out_buf', don't directly print to stdout. |
| 2452 |
summarize_field_ops(), field_op_print_empty_value(): |
| 2453 |
print buffer to stdout. |
| 2454 |
|
| 2455 |
refactor: print empty values (for testing) |
| 2456 |
* src/datamash.c: move empty value printing code from here ... |
| 2457 |
* src/field-ops.{h,c}: ... to new function field_op_print_empty_value(). |
| 2458 |
|
| 2459 |
2015-06-22 Assaf Gordon <[email protected]> |
| 2460 |
|
| 2461 |
maint: add NEWS about 1.0.7 features |
| 2462 |
|
| 2463 |
2015-05-29 Assaf Gordon <[email protected]> |
| 2464 |
|
| 2465 |
build: update gettext/autoconf/automake versions |
| 2466 |
* bootstrap.conf: require gettext>=0.19.4, autoconf=>2.62, |
| 2467 |
automake>=1.11.1. |
| 2468 |
* configure.ac: require gettext=>=0.19.4 |
| 2469 |
* po/ChangeLog: updated to mention gettext 0.19.4 by 'gettextize -f' |
| 2470 |
|
| 2471 |
2015-05-28 Assaf Gordon <[email protected]> |
| 2472 |
|
| 2473 |
maint: update gnulib to latest version. |
| 2474 |
specifically, for mingw fixes: |
| 2475 |
http://lists.gnu.org/archive/html/bug-gnulib/2015-05/msg00026.html |
| 2476 |
http://lists.gnu.org/archive/html/bug-gnulib/2015-05/msg00030.html |
| 2477 |
http://lists.gnu.org/archive/html/bug-gnulib/2015-05/msg00031.html |
| 2478 |
|
| 2479 |
2015-05-27 Assaf Gordon <[email protected]> |
| 2480 |
|
| 2481 |
maint: improve printf portability, remove mingw hack |
| 2482 |
* bootstrap.conf: use gnulib's inttypes,stdint,extensions modules. |
| 2483 |
See http://lists.gnu.org/archive/html/bug-gnulib/2015-05/msg00021.html . |
| 2484 |
* configure.ac: remove mingw hack. gnulib's extensions module should |
| 2485 |
take care of making PRIuMAX work correctly. |
| 2486 |
* src/datamash.c: use PRIuMAX as format speficier in printf, instead of |
| 2487 |
previous ugly mingw hack (which also didn't work with translations, see |
| 2488 |
http://lists.gnu.org/archive/html/bug-datamash/2015-05/msg00001.html ). |
| 2489 |
|
| 2490 |
maint: avoid compiler warning about no-return. |
| 2491 |
* src/fields-ops.c: add 'return' which should never be reached. |
| 2492 |
|
| 2493 |
2015-05-20 Assaf Gordon <[email protected]> |
| 2494 |
|
| 2495 |
tests: improve portability of perl Digest::MD5 |
| 2496 |
On some systems (Centos7, Fedora21), Perl's Digest::MD5 is not installed |
| 2497 |
by default (despite being official a core module). |
| 2498 |
If so, skip the MD5 tests instead of failing. |
| 2499 |
|
| 2500 |
* tests/datamash-md5.pl: separate tests file for MD5. |
| 2501 |
* tests/datamash-tests{,-2}.pl: don't use Digest::MD5 by default. |
| 2502 |
* Makefile.am: add the new test file |
| 2503 |
|
| 2504 |
2015-05-19 Assaf Gordon <[email protected]> |
| 2505 |
|
| 2506 |
maint: improve tests portability of inf/nan |
| 2507 |
Depending on the OS/libc, printf(Not-a-number) can be |
| 2508 |
'nan' or 'NaN'. printf(Infinity) can be 'inf', 'Inf', 'Infinity'. |
| 2509 |
Instead of guessing it, add undocumented option to print the |
| 2510 |
value on the current system. |
| 2511 |
|
| 2512 |
* src/datamash.c: add undocumented options to print the values of |
| 2513 |
inf/nan/progname. |
| 2514 |
* tests/datamash-{tests,tests-2,stats}.pl: use the undocumented |
| 2515 |
option as the expected result string of various tests. |
| 2516 |
|
| 2517 |
2015-01-18 A. Gordon <[email protected]> |
| 2518 |
|
| 2519 |
build: update to lastest gnulib |
| 2520 |
* gnulib: Update to latest |
| 2521 |
* tests/init.sh: update from gnulib |
| 2522 |
|
| 2523 |
2015-01-18 Benno Schulenberg <[email protected]> |
| 2524 |
|
| 2525 |
doc: fix some inconsistencies |
| 2526 |
|
| 2527 |
doc: do not mention the nonexistent options -h and -v |
| 2528 |
|
| 2529 |
2015-01-18 A. Gordon <[email protected]> |
| 2530 |
|
| 2531 |
maint: update copyright year to 2015 |
| 2532 |
|
| 2533 |
maint: enable po translation |
| 2534 |
* bootstrap.conf: remove SKIP_PO |
| 2535 |
* .gitignore: ignore fetched po/ files |
| 2536 |
|
| 2537 |
2014-11-27 A. Gordon <[email protected]> |
| 2538 |
|
| 2539 |
datamash: new option '--narm': ignore NA/NaN values |
| 2540 |
Suggested by Brandon Invergo: |
| 2541 |
http://lists.gnu.org/archive/html/bug-datamash/2014-11/msg00002.html |
| 2542 |
|
| 2543 |
* src/utils.{h,c}: is_na() new function |
| 2544 |
* src/field-ops.{c,h}: |
| 2545 |
field_op_collect(): detect and skip NA/NaN values. |
| 2546 |
field_op_summarize_empty(): print results of empty values. |
| 2547 |
field_op_summarize(): call above function if no values. |
| 2548 |
* src/datamash.c: update usage(), main() |
| 2549 |
* doc/datamash.texi: mention new option |
| 2550 |
* tests/datamash-tests-2.pl: add tests for new option. |
| 2551 |
|
| 2552 |
2014-10-06 A. Gordon <[email protected]> |
| 2553 |
|
| 2554 |
maint: update syntax-check rule to allow digits |
| 2555 |
* cfg.mk: change regex in 'sc_prohibit_test_backticks' rule to allow digits |
| 2556 |
in file names of tests. Also remove two unrelated file names |
| 2557 |
(left-overs from 'coreutils') |
| 2558 |
|
| 2559 |
2014-10-06 A. Gordon <[email protected]> |
| 2560 |
|
| 2561 |
datamash: keep correct lines with '--full' |
| 2562 |
Discussed in https://github.com/agordon/datamash/issues/3 , |
| 2563 |
and also existed in (very) old revisions of 'calc'. |
| 2564 |
|
| 2565 |
When using a selection operation (first/last/min/max/etc) which |
| 2566 |
selects one line out of the group, and combining with --full, |
| 2567 |
this ensures the correct line is selected (not just the correct |
| 2568 |
fields intemixed with the values of the first line). |
| 2569 |
|
| 2570 |
* src/datamash.c: keep the correct line |
| 2571 |
* src/field-ops.{c,h}: for selection operation, determine whether to |
| 2572 |
keep the line or not. |
| 2573 |
* src/datamash-tests.pl: adapt one test of 'lst' to new behavior. |
| 2574 |
* src/datamash-tests-2.pl: tests new --full behavour |
| 2575 |
|
| 2576 |
2014-10-06 A. Gordon <[email protected]> |
| 2577 |
|
| 2578 |
maint: add 'static-analysis' make target |
| 2579 |
Example: |
| 2580 |
make static-analysis |
| 2581 |
or: |
| 2582 |
make static-analysis-configure |
| 2583 |
make static-analysis-make |
| 2584 |
|
| 2585 |
Uses clang's scan-build static analysis tool to analyze the code. |
| 2586 |
|
| 2587 |
Use the two-step method to change code and re-analyze without |
| 2588 |
re-runnning './configure' again. |
| 2589 |
|
| 2590 |
2014-09-12 A. Gordon <[email protected]> |
| 2591 |
|
| 2592 |
build: Enable build using Mingw cross-compilers |
| 2593 |
* configure.ac: add flag and auto-detection for mingw |
| 2594 |
* Makefile.am: add compilation flag |
| 2595 |
* src/datamash.c: Use conditional printf type for size_t ("%zu" for all |
| 2596 |
unixes, "%Iu" for mingw) |
| 2597 |
* HACKING.md: mention this issue |
| 2598 |
* build-aux/check-remote-make-extra.sh: add mingw checks |
| 2599 |
|
| 2600 |
maint: add gnulib 'strsep' and 'random' modules |
| 2601 |
These modules were missing when cross-compiling with mingw. |
| 2602 |
* bootstrap.conf: add missing modules |
| 2603 |
* m4/.gitignore: add files |
| 2604 |
|
| 2605 |
2014-08-22 A. Gordon <[email protected]> |
| 2606 |
|
| 2607 |
maint: expand HACKING.md file |
| 2608 |
* HACKING.md: add notes. |
| 2609 |
* cfg.mk: skip syntax-check on HACKING.md for few rules. |
| 2610 |
|
| 2611 |
datamash: improve delimiter edge-case handling |
| 2612 |
* src/datamash.c: reject NUL delimiter, prevent shell-quoting problems |
| 2613 |
when sorting with single-quote delimiter. |
| 2614 |
* tests/datamash-tests.pl: add tests for these edge-cases. |
| 2615 |
|
| 2616 |
datamash: improve '--group' parameter parsing |
| 2617 |
* src/strcnt.{c,h}: new utility function to count characters in string. |
| 2618 |
* Makefile.am: add new module. |
| 2619 |
* src/datamash.c: parse_group_spec(): improve parsing code. |
| 2620 |
* tests/datamash-tests.pl: add more tests. |
| 2621 |
|
| 2622 |
2014-08-12 Assaf Gordon <[email protected]> |
| 2623 |
|
| 2624 |
datamash: new feature: accept named columns |
| 2625 |
Examples: |
| 2626 |
datamash -H sum price < input.txt |
| 2627 |
(If 'input.txt' has a column named 'price'). |
| 2628 |
|
| 2629 |
datamash -H -g id sum 2 < FILE |
| 2630 |
(assuming FILE has column named 'id') |
| 2631 |
|
| 2632 |
Suggested by Shaun Jackman ([email protected]). |
| 2633 |
|
| 2634 |
* bootstrap.conf: use gnulib's xstrndup module. |
| 2635 |
* src/field-ops.{h,c}: if column parameter is not a valid number, |
| 2636 |
keep parameter as string, and defer finding the number to later. |
| 2637 |
* src/column-headers.{h,c}: add a function to get the column number by |
| 2638 |
its name. |
| 2639 |
* src/datamash.c: process_file(): if some column are named, try to find |
| 2640 |
the columns' number based on the header line, or exit with an error. |
| 2641 |
parse_group_spec(): optionally use names. |
| 2642 |
process_input_header(), remove_dups_in_file(): if grouping/operations |
| 2643 |
use named columns, find column number after reading the header line. |
| 2644 |
usage(): mention named columns. |
| 2645 |
* tests/datamash-tests.pl: adapt existing tests to new error messages, |
| 2646 |
add new tests for this feature. |
| 2647 |
* man/datamash.x: add named-columns examples. |
| 2648 |
|
| 2649 |
2014-08-12 Assaf Gordon <[email protected]> |
| 2650 |
|
| 2651 |
maint: improve 'syntax-check' |
| 2652 |
|
| 2653 |
2014-08-09 A. Gordon <[email protected]> |
| 2654 |
|
| 2655 |
maint: new 'coverage-expensive' target |
| 2656 |
* cfg.mk: add 'coverage-expensive' target, for better coverage. |
| 2657 |
|
| 2658 |
maint: improve build-check scripts |
| 2659 |
* build-aux/check-remote-make-all.sh: accept -c/-b/-m/-e arguments and |
| 2660 |
pass them to 'check-remote-make.sh' script. |
| 2661 |
* build-aux/check-remote-make-extra.sh: check cross-compilation and |
| 2662 |
other compilers |
| 2663 |
* build-aux/check-remote-make-git.sh: check building from git |
| 2664 |
repository. |
| 2665 |
* build-aux/prerelease-checks.sh: use new script. |
| 2666 |
|
| 2667 |
2014-08-09 Assaf Gordon <[email protected]> |
| 2668 |
|
| 2669 |
tests: test more rmdup edge-cases |
| 2670 |
|
| 2671 |
datamash: fix header line edge-case |
| 2672 |
* src/datamash.c: if the input contains a header line but no further lines, |
| 2673 |
print the output header line correctly. |
| 2674 |
* tests/datamash-tests.pl: add tests for this edge case. |
| 2675 |
|
| 2676 |
2014-08-09 A. Gordon <[email protected]> |
| 2677 |
|
| 2678 |
datamash: improve header handling in rmdup/reverse |
| 2679 |
* src/datamash.c: handle input/output header combinations. |
| 2680 |
* tests/datamash-tests.pl: add tests |
| 2681 |
* tests/datamash-transpose.pl: add tests |
| 2682 |
|
| 2683 |
maint: add git-log-fix file |
| 2684 |
* build-aux/git-log-fix: this file is used by gnulib's build module, |
| 2685 |
but after gnulib ugprade it was removed. Add it back. |
| 2686 |
|
| 2687 |
datamash: improve debase64 error handling |
| 2688 |
* src/field-ops.{c,h}: return error code on failed base64 decoding. |
| 2689 |
* src/datamash.c: handle decoding errors. |
| 2690 |
* tests/datamash-tests.pl: test failed base64 decoding. |
| 2691 |
* tests/datamash-valgrind.sh: test base64 encoding/decoding on large |
| 2692 |
input. |
| 2693 |
|
| 2694 |
2014-08-09 Assaf Gordon <[email protected]> |
| 2695 |
|
| 2696 |
maint: improve output of parallel-tests |
| 2697 |
* Makefile.am, init.cfg: redirect stderr to file-descriptor 9, |
| 2698 |
improving error reporting using automake's parallel-tests. |
| 2699 |
Based on similar setttings in GNU coreutils. |
| 2700 |
|
| 2701 |
build: add PURE attribute to functions |
| 2702 |
|
| 2703 |
build: add compiler warnings, -Werror |
| 2704 |
|
| 2705 |
build: speedup with gnulib's unlocked-io module |
| 2706 |
* bootstrap.conf: add gnulib's unlocked-io module, providing |
| 2707 |
significant speed improvement with readlinebuffer_delim(). |
| 2708 |
|
| 2709 |
2014-08-09 A. Gordon <[email protected]> |
| 2710 |
|
| 2711 |
datamash: improve field-parsing code |
| 2712 |
* src/text-lines.c: |
| 2713 |
line_record_parse_fields(): revise code in case of single-character delimiter. |
| 2714 |
|
| 2715 |
2014-08-09 A. Gordon <[email protected]> |
| 2716 |
|
| 2717 |
datamash: new operations: rmdup, noop |
| 2718 |
rmdup: remove lines based on duplicated keys. Similar to: |
| 2719 |
awk '!a[$1]++' |
| 2720 |
noop: no-operation (optionally with --full: print file as-is). Used for |
| 2721 |
testing and profiling. |
| 2722 |
|
| 2723 |
* bootstrap.conf: use gnulib's hash module. |
| 2724 |
* src/field-ops.{c,h}: add new operations |
| 2725 |
* src/utils.{h,c}: |
| 2726 |
hash_compare_strings(): helper function for gnulib's hash module. |
| 2727 |
* src/datamash.c: |
| 2728 |
noop_file(), remove_dups_in_file(): functions for new operations; |
| 2729 |
main(): call new functions. |
| 2730 |
usage(): mention new operation. |
| 2731 |
* tests/datamash-valgrind.sh: test 'rmdup' operation with large input. |
| 2732 |
* man/datamash.x: mention new operation, add example. |
| 2733 |
|
| 2734 |
2014-08-09 A. Gordon <[email protected]> |
| 2735 |
|
| 2736 |
maint: improve syntax-check |
| 2737 |
* src/field-ops.c: replace tabs with spaces. |
| 2738 |
|
| 2739 |
datamash: improve assert and code coverage |
| 2740 |
Asserts impossible conditions, and exclude from code coverage. |
| 2741 |
|
| 2742 |
tests: test more edge-case |
| 2743 |
|
| 2744 |
datamash: refactor operation output type |
| 2745 |
* src/field-ops.{h,c} - define the output type (numeric/string) in the |
| 2746 |
operations table, instead of during runtime. |
| 2747 |
|
| 2748 |
maint: fix/improve 'make coverage' |
| 2749 |
* cfg.mk: force deletion of '*.gcno/*.gcda' when using 'make coverage'. |
| 2750 |
Otherwise, some failures occur with lcov reporting 'unexpected end of |
| 2751 |
file'. |
| 2752 |
|
| 2753 |
maint: fix syntax-check, part 3 |
| 2754 |
|
| 2755 |
maint: fix syntax-check issues, part 2 |
| 2756 |
|
| 2757 |
maint: fix source files for 'syntax-check', part 1 |
| 2758 |
|
| 2759 |
maint: add few more syntax-check rules |
| 2760 |
* cfg.mk: copy syntax-check rules from GNU coreutils. |
| 2761 |
|
| 2762 |
build: update gnulib submodule to latest |
| 2763 |
|
| 2764 |
build: disable --debug option |
| 2765 |
* configure.ac: remove --enable-debug option. |
| 2766 |
* src/*.c: remove #ifdef debug code. |
| 2767 |
|
| 2768 |
2014-08-09 Assaf Gordon <[email protected]> |
| 2769 |
|
| 2770 |
datamash: refactor field-splitting |
| 2771 |
Instead of using gnulib's linebuffer directly, handle line-reading and |
| 2772 |
field-splitting with a new structure 'line_record_t' . |
| 2773 |
Field-splitting by delimiter is performed once, automatically, when a |
| 2774 |
line is read. |
| 2775 |
Pointers to each field are stored in 'line_record_t'. |
| 2776 |
|
| 2777 |
* src/text-lines.{c,h}: implement 'line_record_t' functionality. |
| 2778 |
* src/datamash.c: replace 'linebuffer' with 'line_record_t' . |
| 2779 |
* src/column-headers.{c,h}: use new functionality. |
| 2780 |
* tests/datamash-tests.pl: adapt tests for new error messages. |
| 2781 |
* tests/datamash-valgrind.sh: fix field delimiter in tests. |
| 2782 |
|
| 2783 |
2014-08-08 Assaf Gordon <[email protected]> |
| 2784 |
|
| 2785 |
maint: add 'default' case to prevent compiler warning |
| 2786 |
|
| 2787 |
datamash: bugfix: detect invalid column values |
| 2788 |
* src/field-ops.c: add more checks |
| 2789 |
* tests/datamash-tests.pl: add more tests |
| 2790 |
|
| 2791 |
tests: tests few more edge-cases |
| 2792 |
|
| 2793 |
datamash: improve field-op output handling |
| 2794 |
* src/field-ops.{c,h}: pre-allocate buffer for string output when |
| 2795 |
initializing the field-op, instead of malloc/free on every print. |
| 2796 |
field_op_reserve_out_buf(): ensures the field-op's output buffer is |
| 2797 |
large enough to hold the resulting string; |
| 2798 |
field_op_to_hex(), unique_values(), count_unique_values(), |
| 2799 |
collapse_values(), field_op_summarize(): use new output buffer. |
| 2800 |
|
| 2801 |
2014-08-08 A. Gordon <[email protected]> |
| 2802 |
|
| 2803 |
datamash: new line operations: md5/sha*, base64 |
| 2804 |
Line-Operations work on each line on the file (no grouping by key). |
| 2805 |
|
| 2806 |
Example: md5 on the first column on a file: |
| 2807 |
datamash md5 1 < FILE |
| 2808 |
Is similar to: |
| 2809 |
perl -MDigest::MD5=md5_hex -lane 'print md5_hex($F[0])' < FILE |
| 2810 |
|
| 2811 |
* bootstrap.conf: add gnulib's md5/sha*/base64 modules |
| 2812 |
* src/field-ops.{c,h}: implement new operations |
| 2813 |
* src/datamash.c: |
| 2814 |
process_file(): implement new 'line mode' processing; |
| 2815 |
usage() mention new options. |
| 2816 |
* man/datamash.x: mention new operations |
| 2817 |
* doc/datamash.texi: ditto |
| 2818 |
* tests/datamash-tests.pl: test new operations |
| 2819 |
* tests/datamash-sha.pl: test sha1/256/512 opertions (requiring recent |
| 2820 |
perl module Digest::SHA, this test might be skipped on systems with old Perl). |
| 2821 |
* Makefile.am: add new test file. |
| 2822 |
|
| 2823 |
2014-08-03 A. Gordon <[email protected]> |
| 2824 |
|
| 2825 |
maint: fix wrong path in previous commit |
| 2826 |
|
| 2827 |
maint: added bash-completion script |
| 2828 |
* contrib/bash-completion/datamash - bash completion script |
| 2829 |
* Makefile.am: include script in distribution (without installing it) |
| 2830 |
* .gitignore: ignore the binary executable only |
| 2831 |
|
| 2832 |
2014-07-30 A. Gordon <[email protected]> |
| 2833 |
|
| 2834 |
maint: update NEWS |
| 2835 |
|
| 2836 |
maint: gitignore more files |
| 2837 |
|
| 2838 |
maint: add pre-release build-and-check script |
| 2839 |
|
| 2840 |
maint: improve check-and-build scripts |
| 2841 |
* build-aux/check-remote-make.sh: report system inforation, accept |
| 2842 |
custom git branch to check-out. |
| 2843 |
* build-aux/check-remote-make-all.sh: add more hosts. |
| 2844 |
|
| 2845 |
tests: skip some tests if perl isn't found |
| 2846 |
* configure.ac: test for Perl, setup PERL_FOUND automake varaible. |
| 2847 |
* Makefile.am: enable parallel tests for pl,sh files, and use a stub to |
| 2848 |
skip tests if Perl is not found on the system. |
| 2849 |
|
| 2850 |
tests: mark valgrind test as 'expensive' |
| 2851 |
|
| 2852 |
2014-07-27 A. Gordon <[email protected]> |
| 2853 |
|
| 2854 |
tests: improve portability under qemu/binfmt |
| 2855 |
When building with cross-compiling AND running (non-native) binary |
| 2856 |
locally with qemu/binfmt, the argv[0] (binary name) is changed by qemu. |
| 2857 |
argv[0] is used for error reporting. |
| 2858 |
|
| 2859 |
Example with most systems, argv[0] is exactly the same as the user |
| 2860 |
entered: |
| 2861 |
$ datamash --foobar |
| 2862 |
datamash: invalid option --foobar |
| 2863 |
|
| 2864 |
$ /custom/path/datamash --foobar |
| 2865 |
/custom/path/datamash: invalid option --foobar |
| 2866 |
|
| 2867 |
But under qemu/binfmt, argv[0] becomes the full path: |
| 2868 |
|
| 2869 |
$ datamash --foobar |
| 2870 |
/home/gordon/projects/datamash/datamash: invalid option --foobar |
| 2871 |
|
| 2872 |
The tests were modified to detect the actual path reported by the |
| 2873 |
program, or fall back to 'datamash' (as it was before). |
| 2874 |
|
| 2875 |
2014-07-27 A. Gordon <[email protected]> |
| 2876 |
|
| 2877 |
maint: improve build-aux check scripts |
| 2878 |
* renamed remote-make-check.sh => check-remote-make.sh |
| 2879 |
* renamed remote-make-check-all.sh => check-remote-make-all.sh |
| 2880 |
* check-remote-make.sh: added features: |
| 2881 |
1) more source: local/remote tarball, git |
| 2882 |
2) more compressions: gz/bz2/xz |
| 2883 |
3) building from git with './bootstrap' |
| 2884 |
4) command-line options to set parameters to env/configure/make |
| 2885 |
|
| 2886 |
2014-07-27 A. Gordon <[email protected]> |
| 2887 |
|
| 2888 |
maint: improve debian-hardening build method |
| 2889 |
* configure.ac: move option from './configure' to .. |
| 2890 |
* cfg.mk: make rules. |
| 2891 |
|
| 2892 |
Instead of: |
| 2893 |
./configure --enable-debian-hardenning |
| 2894 |
Now use: |
| 2895 |
make deb-hard |
| 2896 |
|
| 2897 |
2014-07-27 A. Gordon <[email protected]> |
| 2898 |
|
| 2899 |
man page: improve hyphen vs minus characters |
| 2900 |
* man/datamash.x: escape minus characters where needed, to distinguish between |
| 2901 |
hyphens and minus/dash. |
| 2902 |
Suggested by Alejandro Garrido Mota <[email protected]> |
| 2903 |
|
| 2904 |
tests: test I/O errors |
| 2905 |
* tests/datamash-io-errors.sh: tests I/O errors using specially pre-mounted |
| 2906 |
filesystems. |
| 2907 |
* Makefile.am: add test. |
| 2908 |
* build-aux/create_corrupted_filesystem.sh: script to create corrupted |
| 2909 |
ext3 filesystem image. |
| 2910 |
* build-aux/create_small_filesystem.sh: script to create small ext3 |
| 2911 |
filesystem which can be filled easily. |
| 2912 |
|
| 2913 |
2014-07-25 A. Gordon <[email protected]> |
| 2914 |
|
| 2915 |
datamash: add 'internal_error' macro |
| 2916 |
* src/system.h: define 'internal_error' macro. |
| 2917 |
* src/field-ops.c: Replace 'error' call with 'internal_error' macro. |
| 2918 |
* src/datamash.c: ditto. |
| 2919 |
|
| 2920 |
build: don't re-generate manpage from tarball |
| 2921 |
* configure.ac: search for '.git' directory, implying building from git |
| 2922 |
(if found) or tarball (if not found). |
| 2923 |
* Makefile.am: If building from GIT, re-generate manpage. If building |
| 2924 |
rom tarball, assume the manpage is already there, do not regenerate it, |
| 2925 |
and do not clean it (with 'make clean'). |
| 2926 |
|
| 2927 |
2014-07-23 Assaf Gordon <[email protected]> |
| 2928 |
|
| 2929 |
datamash: new operations: transpose, reverse |
| 2930 |
* src/datamash.c: new functions: transpose_file(), reverse_fields_in_file(). |
| 2931 |
main(): parse new options |
| 2932 |
usage(): update help screen |
| 2933 |
* src/field-ops.{h,c}: new function: parse_operation_mode(). |
| 2934 |
parse_operations() renamed to parse_grouping_operations(). |
| 2935 |
* man/datamash.x: updated man-page information |
| 2936 |
* doc/datamash.texi: updated texinfo manual |
| 2937 |
* tests/datamash-transpose.pl - new tests |
| 2938 |
* tests/datamash-valgrind.sh - new tests |
| 2939 |
* Makefile.am: include new tests |
| 2940 |
|
| 2941 |
2014-07-18 A. Gordon <[email protected]> |
| 2942 |
|
| 2943 |
datamash: fix typo in help screen |
| 2944 |
* src/datamash.c: usage(): fix 'pto' => 'dpo' typo. |
| 2945 |
|
| 2946 |
2014-07-17 A. Gordon <[email protected]> |
| 2947 |
|
| 2948 |
build: fix configure's message of examples path |
| 2949 |
* configure.ac: Report correct path of installed examples |
| 2950 |
( PACKAGE_NAME = "GNU Datamash" while PACKAGE = "datamash" ). |
| 2951 |
|
| 2952 |
build: fix configure.ac parameter typo |
| 2953 |
* configure.ac: fix param definition (otherwise --disable-debug would fail). |
| 2954 |
|
| 2955 |
build: add build prerequisites |
| 2956 |
* bootstrap.conf: add gettext, gperf, makeinfo as prerequisites when |
| 2957 |
building from git source. |
| 2958 |
|
| 2959 |
tests: test headers with whitespace delimiters |
| 2960 |
* tests/datamash-tests.pl: add test for header line with whitespace |
| 2961 |
delimiters. |
| 2962 |
|
| 2963 |
datamash: simplify line buffer handling |
| 2964 |
* src/text-lines.c: linebuffer_nullify(): based on |
| 2965 |
readlinebuffer_delim(), there is always a EOL-delimiter present in the |
| 2966 |
buffer. |
| 2967 |
|
| 2968 |
tests: add Sample-Skewness test |
| 2969 |
* tests/datamash-stats.pl: test sample-skewness with just 2 data points. |
| 2970 |
|
| 2971 |
maint: improve internal errors |
| 2972 |
* src/field-ops.c: don't gettextize internal errors (no need to |
| 2973 |
translate them), and exclude them from coverage reports. |
| 2974 |
* src/utils.c: exclude internal error from coverage reports. |
| 2975 |
|
| 2976 |
datamash: improve gettext strings |
| 2977 |
* src/datamash.c: usage(): improve wording, gettextize missed string, |
| 2978 |
line up long options. |
| 2979 |
Based on suggestion by Benno Schulenberg from the Translation Project. |
| 2980 |
|
| 2981 |
2014-07-16 A. Gordon <[email protected]> |
| 2982 |
|
| 2983 |
maint: update NEWS and README |
| 2984 |
|
| 2985 |
maint: syntax-check fix |
| 2986 |
* Makefile.am: reduce spaces to appease 'make syntax-check' rule. |
| 2987 |
|
| 2988 |
build: Explicitly use perl for help2man |
| 2989 |
* Makefile.am: Use 'perl' executable in $PATH for help2man, |
| 2990 |
don't count on #! path in help2man - Hydra/NixOS doesn't have |
| 2991 |
"/usr/bin/env", so it can't be used. |
| 2992 |
NOTE: Using customized help2man (see commit 33c75d), so don't use |
| 2993 |
system's installed help2man. |
| 2994 |
|
| 2995 |
2014-07-15 A. Gordon <[email protected]> |
| 2996 |
|
| 2997 |
Expand manual page |
| 2998 |
* man/datamash.x: expand manual page with content from old help screen. |
| 2999 |
|
| 3000 |
datamash: shorten help screen |
| 3001 |
src/datamash.c: usage(): shorten help screen. |
| 3002 |
|
| 3003 |
build: man page depends on .x template |
| 3004 |
* Makefile.am: make manual page generation depend on datamash.x |
| 3005 |
template. |
| 3006 |
|
| 3007 |
build: accept single example in help2man |
| 3008 |
* man/help2man: Modify the EXAMPLES pattern detection to accept |
| 3009 |
a single example. |
| 3010 |
|
| 3011 |
2014-07-15 A. Gordon <[email protected]> |
| 3012 |
|
| 3013 |
build: don't hard-code Perl path in scripts |
| 3014 |
* man/help2man - Use "/usr/bin/env perl" instead of "/usr/bin/perl". |
| 3015 |
* tests/datamash-stats.pl - ditto |
| 3016 |
* tests/datamash-tests.pl - ditto |
| 3017 |
|
| 3018 |
Hard-coded Perl fails Hydra/NixOS builds |
| 3019 |
(http://hydra.nixos.org/build/12516876), and is also generally bad form. |
| 3020 |
|
| 3021 |
2014-07-06 A. Gordon <[email protected]> |
| 3022 |
|
| 3023 |
GNU Datamash: remove files relating to external sites |
| 3024 |
|
| 3025 |
GNU Datamash: update README |
| 3026 |
|
| 3027 |
GNU Datamash: rename package |
| 3028 |
|
| 3029 |
2014-05-20 A. Gordon <[email protected]> |
| 3030 |
|
| 3031 |
maint: improve comments in tests |
| 3032 |
|
| 3033 |
2014-05-13 A. Gordon <[email protected]> |
| 3034 |
|
| 3035 |
maint: add 'texlive' package to Travis-CI |
| 3036 |
|
| 3037 |
maint: add 'texinfo' package to travis-CI |
| 3038 |
|
| 3039 |
2014-05-13 A. Gordon <[email protected]> |
| 3040 |
|
| 3041 |
doc: add texinfo documentation |
| 3042 |
|
| 3043 |
2014-04-30 A. Gordon <[email protected]> |
| 3044 |
|
| 3045 |
maint: update copyright/license in files |
| 3046 |
|
| 3047 |
2014-04-19 A. Gordon <[email protected]> |
| 3048 |
|
| 3049 |
maint: update 'git-log-fix' due to gnulib upgrade. |
| 3050 |
|
| 3051 |
gnulib: upgrade to latest version |
| 3052 |
|
| 3053 |
maint: add more hosts to build-check script |
| 3054 |
|
| 3055 |
maint: .gitignore more files |
| 3056 |
|
| 3057 |
maint: fix 'make syntax-check' errors |
| 3058 |
|
| 3059 |
maint: replace old bcopy/bzero calls with memmove/memset |
| 3060 |
|
| 3061 |
2014-04-15 A. Gordon <[email protected]> |
| 3062 |
|
| 3063 |
maint: add cygwin distribution packing script |
| 3064 |
|
| 3065 |
build: work-around strtold() bug on cygwin |
| 3066 |
|
| 3067 |
build: remove unneeded header from src/compute.c |
| 3068 |
Compilation failed on Cygwin with this header. |
| 3069 |
|
| 3070 |
maint: improve automatic checks script |
| 3071 |
|
| 3072 |
Formalize rarely used debug option |
| 3073 |
To build with debug option: |
| 3074 |
./configure --enable-debug |
| 3075 |
To use: |
| 3076 |
compute --debug [other options] |
| 3077 |
|
| 3078 |
build: fix compilation on Cygwin (missing nanl/expl) |
| 3079 |
|
| 3080 |
2014-04-12 A. Gordon <[email protected]> |
| 3081 |
|
| 3082 |
maint: improve instructions in 'tag-new-version' script |
| 3083 |
|
| 3084 |
maint: .gitignore few more files |
| 3085 |
|
| 3086 |
maint: add script to build and test on multiple hosts. |
| 3087 |
|
| 3088 |
maint: Improve output of 'aws-upload' script |
| 3089 |
|
| 3090 |
portability: cater to systems without a stable sort |
| 3091 |
|
| 3092 |
tests: improve portability when detecting 'nan' |
| 3093 |
It's 'nan' on most systems, but 'NaN' on some. |
| 3094 |
|
| 3095 |
build: portability: add missing <strings.h> header |
| 3096 |
bzero() and bcopy() fail to compile on DilOS without it. |
| 3097 |
|
| 3098 |
tests: improve portability of mktemp |
| 3099 |
Five X's fail on OpenBSD. |
| 3100 |
|
| 3101 |
compute: default to TAB instead of Whitespace as delimiter |
| 3102 |
|
| 3103 |
compute: fix typos |
| 3104 |
|
| 3105 |
2014-04-11 A. Gordon <[email protected]> |
| 3106 |
|
| 3107 |
maint: add script to build & check on remote machine |
| 3108 |
|
| 3109 |
tests: improve portability of error message detection. |
| 3110 |
|
| 3111 |
tests: don't assume 'seq' is installed. SKIP if not found. |
| 3112 |
|
| 3113 |
build: improve 'inline' declaration for two functions. |
| 3114 |
They failed to build on OpenBSD. |
| 3115 |
|
| 3116 |
compute: improve help screen |
| 3117 |
|
| 3118 |
compute: new operation: D'Agostino-Pearson omnibus (dpo) normality test |
| 3119 |
|
| 3120 |
src/utils: adjust math functions for consistant nan results |
| 3121 |
|
| 3122 |
compute: new operation: Jarque-Bera normality test |
| 3123 |
|
| 3124 |
tests: test mad/madraw with unsorted input |
| 3125 |
|
| 3126 |
2014-04-10 A. Gordon <[email protected]> |
| 3127 |
|
| 3128 |
tests: tests more sequences |
| 3129 |
|
| 3130 |
compute: new operation: excess kurtosis |
| 3131 |
|
| 3132 |
compute: new operation: skewness (for pop./sample) |
| 3133 |
|
| 3134 |
src/utils: extract function for arithmetic mean. |
| 3135 |
|
| 3136 |
tests: document equivalent R code for stat tests + reorder. |
| 3137 |
|
| 3138 |
compute: new operations: mad,madraw |
| 3139 |
|
| 3140 |
tests: add tests for pop/sample stdev/variance |
| 3141 |
|
| 3142 |
compute: new operations: q1,q3,iqr |
| 3143 |
|
| 3144 |
compute: new operation: rand |
| 3145 |
|
| 3146 |
2014-04-09 A. Gordon <[email protected]> |
| 3147 |
|
| 3148 |
build: add -Werror to ./src/ files. |
| 3149 |
|
| 3150 |
tests: fix comments |
| 3151 |
|
| 3152 |
compute: new operations: first,last |
| 3153 |
|
| 3154 |
2014-04-08 A. Gordon <[email protected]> |
| 3155 |
|
| 3156 |
compute: set numeric output precision |
| 3157 |
|
| 3158 |
build: improve comment in configure.ac |
| 3159 |
|
| 3160 |
2014-04-08 A. Gordon <[email protected]> |
| 3161 |
|
| 3162 |
build: Use compiler warnings from gl_WARN_ADD |
| 3163 |
Those were wrongly dropped when changed to non-recursive makefile. |
| 3164 |
|
| 3165 |
The new flags are used only with the 'compute' sources, |
| 3166 |
but not with the gnulib sources. |
| 3167 |
|
| 3168 |
2014-04-08 A. Gordon <[email protected]> |
| 3169 |
|
| 3170 |
compute: detect invalid suffix in numeric input. |
| 3171 |
|
| 3172 |
fields-ops: remove 'keep_lines' feature. |
| 3173 |
Perhaps will be added in future versions. |
| 3174 |
|
| 3175 |
compute: move numeric conversion into 'field-ops' module. |
| 3176 |
|
| 3177 |
2014-03-22 A. Gordon <[email protected]> |
| 3178 |
|
| 3179 |
build: add helper scripts to EXTRA_DIST |
| 3180 |
|
| 3181 |
build: work-around for missing '.tarball-version' |
| 3182 |
See: |
| 3183 |
http://lists.gnu.org/archive/html/bug-hello/2014-03/msg00017.html |
| 3184 |
|
| 3185 |
maint: update helper scripts |
| 3186 |
|
| 3187 |
build: include 'help2man' and use it. |
| 3188 |
Not all systems have "help2man" installed. |
| 3189 |
|
| 3190 |
2014-03-20 A. Gordon <[email protected]> |
| 3191 |
|
| 3192 |
maint: add helper script to upload files to AWS S3 |
| 3193 |
|
| 3194 |
build: update helper scripts to new name |
| 3195 |
|
| 3196 |
2014-03-19 A. Gordon <[email protected]> |
| 3197 |
|
| 3198 |
RENAME: calc -> compute |
| 3199 |
To avoid name conflicts with existing software. |
| 3200 |
|
| 3201 |
2014-03-18 A. Gordon <[email protected]> |
| 3202 |
|
| 3203 |
TravisCI - no need for GNU Sed 4.2.2 anymore. |
| 3204 |
|
| 3205 |
calc: bugfix on --sort without grouping. |
| 3206 |
'pipe_through_sort' was not cleared, caused errors on FreeBSD |
| 3207 |
(all other systems seems not to mind calling pclose on a non-popen |
| 3208 |
FILE). |
| 3209 |
|
| 3210 |
calc: sort+headers: don't use GNU sed. |
| 3211 |
Implement unbuffered input to avoid GNU sed dependency. |
| 3212 |
|
| 3213 |
2014-03-15 A. Gordon <[email protected]> |
| 3214 |
|
| 3215 |
calc: fix 'make syntax-check' errors |
| 3216 |
|
| 3217 |
build: improve ./configure messages |
| 3218 |
|
| 3219 |
gitignore: ignore more files |
| 3220 |
Automatically generated by gnulib |
| 3221 |
|
| 3222 |
2014-03-14 A. Gordon <[email protected]> |
| 3223 |
|
| 3224 |
Travis-CI: add 'make distcheck', disable encode binary |
| 3225 |
No need to save the static binary from a Linux build - can be |
| 3226 |
easily created anywhere. |
| 3227 |
|
| 3228 |
build: make-bin script: improve tar filename |
| 3229 |
|
| 3230 |
build: update gnulib |
| 3231 |
|
| 3232 |
build: add empty git-log-fix |
| 3233 |
Will be needed if there are ever commit tyops/errors, |
| 3234 |
see http://lists.gnu.org/archive/html/coreutils/2011-11/msg00004.html |
| 3235 |
|
| 3236 |
build: fix help2man issue on FreeBSD |
| 3237 |
http://lists.gnu.org/archive/html/bug-hello/2014-03/msg00003.html |
| 3238 |
|
| 3239 |
2014-03-13 A. Gordon <[email protected]> |
| 3240 |
|
| 3241 |
Travis-CI: don't get git submodules. 'bootstrap' should do it. |
| 3242 |
|
| 3243 |
Travis-CI: build with debian hardening flags |
| 3244 |
|
| 3245 |
src/calc: (temporarily) ignore the return value of fwrite |
| 3246 |
using gnulib's 'clouseout' module will check for write |
| 3247 |
errors when the program terminates. |
| 3248 |
|
| 3249 |
build: add '--enable-debian-hardening' to './configure' |
| 3250 |
report CPPFLAGS at the end of './configure' |
| 3251 |
|
| 3252 |
tests: minor change to improve portability |
| 3253 |
Previous syntax failed on Mac-OS X. |
| 3254 |
|
| 3255 |
Switch to non-recursive Makefile |
| 3256 |
|
| 3257 |
2014-03-11 A. Gordon <[email protected]> |
| 3258 |
|
| 3259 |
Travis-CI: check coverage after successful build |
| 3260 |
|
| 3261 |
gitignore: ignore coverage files |
| 3262 |
|
| 3263 |
tests: tests sort-pipe failure |
| 3264 |
|
| 3265 |
coverage tests: exclude unreachable line |
| 3266 |
|
| 3267 |
build: remove unused module 'strnumcmp' |
| 3268 |
|
| 3269 |
src/field-ops.c: document unreachable code. |
| 3270 |
|
| 3271 |
src/field-ops.c: refactor free() code. |
| 3272 |
|
| 3273 |
tests: add tests, improve coverage |
| 3274 |
|
| 3275 |
src/column-headers.c: improve error message |
| 3276 |
|
| 3277 |
build: add scripts to generate coverage information |
| 3278 |
|
| 3279 |
build: define inline'd symbols in src/text-options.c |
| 3280 |
Avoids 'undefined reference' errors when compiling with coverage |
| 3281 |
instrumentation. |
| 3282 |
|
| 3283 |
2014-03-10 A. Gordon <[email protected]> |
| 3284 |
|
| 3285 |
Travis: improve build, add scripts |
| 3286 |
|
| 3287 |
2014-03-09 A. Gordon <[email protected]> |
| 3288 |
|
| 3289 |
build: add 'make-bin' script to distribution |
| 3290 |
|
| 3291 |
build: print message at the end of ./configure |
| 3292 |
|
| 3293 |
build: make GZ tarballs, not XZ. |
| 3294 |
|
| 3295 |
build: add required README file as a stub. |
| 3296 |
|
| 3297 |
.gitignore: ignore more files |
| 3298 |
|
| 3299 |
build: helper script to build static binaries |
| 3300 |
|
| 3301 |
README: update information, refer to website |
| 3302 |
|
| 3303 |
.gitignore: ignore build-related files |
| 3304 |
|
| 3305 |
calc: free column headers, add tests |
| 3306 |
|
| 3307 |
calc: bugfix for headers without grouping |
| 3308 |
|
| 3309 |
tests: don't use valgrind on static binaries |
| 3310 |
|
| 3311 |
2014-03-08 A. Gordon <[email protected]> |
| 3312 |
|
| 3313 |
calc: new global case-sensitive option '-i' + tests |
| 3314 |
|
| 3315 |
build: fix minor errors |
| 3316 |
|
| 3317 |
refactor: extract common functions into modules |
| 3318 |
|
| 3319 |
maint: update copyright year, add GPL |
| 3320 |
|
| 3321 |
calc: conditionally compile '--debug' option. |
| 3322 |
To enable it, Use |
| 3323 |
./configure CFLAGS="-DENABLE_DEBUG" |
| 3324 |
|
| 3325 |
calc: improve help screen. |
| 3326 |
|
| 3327 |
examples: improve 'scores' example |
| 3328 |
|
| 3329 |
2014-03-07 A. Gordon <[email protected]> |
| 3330 |
|
| 3331 |
build: remove 'make distcheck' from Travis-CI. |
| 3332 |
It fails for unclear reason. |
| 3333 |
|
| 3334 |
calc: remove extraneous 'const' |
| 3335 |
Caused compilation errors with clang. |
| 3336 |
|
| 3337 |
build: Add ".travis.yml" for Travis-CI |
| 3338 |
|
| 3339 |
calc: fix sort+headers, add tests |
| 3340 |
|
| 3341 |
examples: use '-s' instead of piping to 'sort|' |
| 3342 |
|
| 3343 |
calc: implement auto-sorting, add tests |
| 3344 |
|
| 3345 |
calc: add stub for '--sort' option. |
| 3346 |
|
| 3347 |
build: remove 'key-compare' from PO list |
| 3348 |
|
| 3349 |
calc: simplify code, don't use key-compare module. |
| 3350 |
|
| 3351 |
calc: simply parameters, remove '--key' option. |
| 3352 |
|
| 3353 |
calc: add '-T' as shortcut for tab separator. |
| 3354 |
|
| 3355 |
Merge branch 'examples' |
| 3356 |
|
| 3357 |
examples: add example files. |
| 3358 |
|
| 3359 |
2014-03-06 A. Gordon <[email protected]> |
| 3360 |
|
| 3361 |
tests: fix valgrind test for 'make distcheck' |
| 3362 |
|
| 3363 |
tests: add valgrind tests |
| 3364 |
|
| 3365 |
calc: fix memory problems |
| 3366 |
|
| 3367 |
2014-03-05 A. Gordon <[email protected]> |
| 3368 |
|
| 3369 |
examples: new sub-directory |
| 3370 |
|
| 3371 |
tests: add countunique tests |
| 3372 |
|
| 3373 |
new operation: countunique |
| 3374 |
|
| 3375 |
2014-03-04 A. Gordon <[email protected]> |
| 3376 |
|
| 3377 |
tests: test single-line groups |
| 3378 |
|
| 3379 |
2014-02-27 A. Gordon <[email protected]> |
| 3380 |
|
| 3381 |
tests: check empty input |
| 3382 |
|
| 3383 |
bugfix: '--full' and no groups would return the wrong line. |
| 3384 |
Returned the last line of the last group, instead of the first line of |
| 3385 |
the last group (as it returns the first line of every other group). |
| 3386 |
|
| 3387 |
tests: add --header-in tests |
| 3388 |
|
| 3389 |
headers: don't print group headers with --full. |
| 3390 |
|
| 3391 |
tests: test count on non-numeric fields |
| 3392 |
|
| 3393 |
remove unused cruft (from header feature) |
| 3394 |
|
| 3395 |
bugfix: Allow 'count' to count non-numeric fields |
| 3396 |
|
| 3397 |
key-compare: make 'blanks' public. |
| 3398 |
|
| 3399 |
implement headers support. |
| 3400 |
|
| 3401 |
Implement output headers (without --full). |
| 3402 |
|
| 3403 |
Command-line processing and Help for 'headers' options. |
| 3404 |
|
| 3405 |
2013-05-04 Assaf Gordon <[email protected]> |
| 3406 |
|
| 3407 |
build: touch missing files |
| 3408 |
|
| 3409 |
2013-04-27 Assaf Gordon <[email protected]> |
| 3410 |
|
| 3411 |
build: use gl_WARN_ADD for compiler warnings |
| 3412 |
|
| 3413 |
key-compare: fix compilation warnings |
| 3414 |
-Wunused-parameter and -Wswitch-default will trigger warnings. |
| 3415 |
change code to avoid them. |
| 3416 |
|
| 3417 |
2013-04-26 Assaf Gordon <[email protected]> |
| 3418 |
|
| 3419 |
Merge branch 'gitchangelog' |
| 3420 |
|
| 3421 |
build: add gnulib's gitlog-to-changelog |
| 3422 |
|
| 3423 |
2013-04-12 Assaf Gordon <[email protected]> |
| 3424 |
|
| 3425 |
calc: improve help message for help2man |
| 3426 |
|
| 3427 |
gettext-ify the package |
| 3428 |
|
| 3429 |
autoconf: switch from gz to xz |
| 3430 |
|
| 3431 |
system.h: minor improvements |
| 3432 |
|
| 3433 |
2013-04-10 Assaf Gordon <[email protected]> |
| 3434 |
|
| 3435 |
calc: use gnulib closeout module |
| 3436 |
Protect against write errors at the end of te program, |
| 3437 |
e.g. 'calc XXX > /dev/full' (which should fail). |
| 3438 |
|
| 3439 |
Merge branch 'better_autotools' |
| 3440 |
|
| 3441 |
GNU-ify: add auto-generated man page |
| 3442 |
|
| 3443 |
cleanups: remove 'scripts' directory |
| 3444 |
There are no add-on scripts for calc (at the moment). |
| 3445 |
|
| 3446 |
GNU-ify: update src/Makefile.am |
| 3447 |
|
| 3448 |
GNU-ify: update tests/Makefile.am |
| 3449 |
|
| 3450 |
GNU-ify: add AUTHORS,THANKS |
| 3451 |
|
| 3452 |
GNU-ify based on GNU-hello, step 1 (configure.ac) |
| 3453 |
|
| 3454 |
code cleanups and more comments |
| 3455 |
|
| 3456 |
add GPLv3+ text to source files |
| 3457 |
|
| 3458 |
2013-04-09 Assaf Gordon <[email protected]> |
| 3459 |
|
| 3460 |
some more comments |
| 3461 |
|
| 3462 |
minor code cleanups |
| 3463 |
|
| 3464 |
minor code cleanups |
| 3465 |
|
| 3466 |
calc: groupping support (with proper output) |
| 3467 |
|
| 3468 |
calc: process groups. |
| 3469 |
|
| 3470 |
calc: add tests for groups |
| 3471 |
|
| 3472 |
calc: re-arrange headers |
| 3473 |
|
| 3474 |
calc: compare lines using --key |
| 3475 |
|
| 3476 |
calc: prepare code for key-compare. |
| 3477 |
|
| 3478 |
calc: import key-compare form coreutils. |
| 3479 |
|
| 3480 |
2013-04-06 Assaf Gordon <[email protected]> |
| 3481 |
|
| 3482 |
calc: expand '--help' section |
| 3483 |
|
| 3484 |
README: add simple use-case. |
| 3485 |
|
| 3486 |
tests: more tests (groups) |
| 3487 |
|
| 3488 |
tests: fix automake for out-of-tree builds |
| 3489 |
|
| 3490 |
calc: more tests |
| 3491 |
|
| 3492 |
calc: more tests |
| 3493 |
|
| 3494 |
calc: initial testing framework |
| 3495 |
run with: make check |
| 3496 |
or: make check VERBOSE=yes |
| 3497 |
or: make check VERBOSE=yes DEBUG=yes SAVE_TEMPS=yes |
| 3498 |
|
| 3499 |
calc: proper printing of output |
| 3500 |
|
| 3501 |
calc: field extractiong works |
| 3502 |
|
| 3503 |
2013-04-05 Assaf Gordon <[email protected]> |
| 3504 |
|
| 3505 |
calc: re-factor, prepare for field support. |
| 3506 |
|
| 3507 |
calc: bugfix for numeric values with groups |
| 3508 |
|
| 3509 |
calc: initial grouping, by empty line |
| 3510 |
|
| 3511 |
calc: re-implement unique/collapse |
| 3512 |
|
| 3513 |
calc: implement unique/unique-nocase |
| 3514 |
|
| 3515 |
calc: implement mode/antimode |
| 3516 |
|
| 3517 |
calc: implement stdev/variance, other fixes. |
| 3518 |
|
| 3519 |
2013-04-04 Assaf Gordon <[email protected]> |
| 3520 |
|
| 3521 |
calc: first shot at multi-valued numeric (median) |
| 3522 |
|
| 3523 |
calc: single-value operations working. |
| 3524 |
|
| 3525 |
calc: add stub input reading |
| 3526 |
|
| 3527 |
2013-04-03 Assaf Gordon <[email protected]> |
| 3528 |
|
| 3529 |
calc: create field/op structures |
| 3530 |
|
| 3531 |
calc: parse operation arguments |
| 3532 |
|
| 3533 |
calc: set GNU coding styles for VIM |
| 3534 |
|
| 3535 |
calc: process -z and --debug |
| 3536 |
|
| 3537 |
2013-03-30 Assaf Gordon <[email protected]> |
| 3538 |
|
| 3539 |
build system: fix auto generated version.c |
| 3540 |
|
| 3541 |
calc: add template code |
| 3542 |
Add version, coyright, help, usage messages. |
| 3543 |
|
| 3544 |
gnulib: add modules. |
| 3545 |
|
| 3546 |
configure.ac: remove extra GCC checks |
| 3547 |
gnulib doesn't compile with them. |
| 3548 |
TODO: add GCC warnings to projec'ts build in src/Makefile.am. |
| 3549 |
(but only if using GCC). |
| 3550 |
|
| 3551 |
added gnulib submodule |
| 3552 |
|
| 3553 |
Initial Commit |