mirror of
https://github.com/johnkerl/miller.git
synced 2026-07-28 10:13:59 +00:00
neaten
This commit is contained in:
parent
4e92e7aea3
commit
bf2bc8e246
2 changed files with 3 additions and 5 deletions
|
|
@ -2199,6 +2199,7 @@ static void handle_emit_all_to_stdfp(
|
|||
// xxx handle better, maybe in a class. the opts aren't complete at alloc time so we need to handle them here.
|
||||
if (pnode->psingle_lrec_writer == NULL) {
|
||||
cli_opts_t* popts = MLR_GLOBALS.popts;
|
||||
// xxx bag up as popts per se 1st.
|
||||
pnode->psingle_lrec_writer = lrec_writer_alloc(popts->ofile_fmt, popts->ors, popts->ofs, popts->ops,
|
||||
popts->headerless_csv_output, popts->oquoting, popts->left_align_pprint,
|
||||
popts->right_justify_xtab_value, popts->json_flatten_separator, popts->quote_json_values_always,
|
||||
|
|
@ -2220,6 +2221,7 @@ static void handle_emit_all_to_stdfp(
|
|||
}
|
||||
sllmv_free(pmvnames);
|
||||
|
||||
// xxx make method
|
||||
while (poutrecs->phead != NULL) {
|
||||
lrec_t* poutrec = sllv_pop(poutrecs);
|
||||
pnode->psingle_lrec_writer->pprocess_func(pnode->stdfp, poutrec, pnode->psingle_lrec_writer->pvstate);
|
||||
|
|
|
|||
|
|
@ -1,11 +1,7 @@
|
|||
================================================================
|
||||
BUGFIXES
|
||||
|
||||
*
|
||||
mlr --from myfile.dat put '@v[NR][NR]=$* ; emit > stderr, @*, "index1", "index2"'
|
||||
mlr: internal coding error detected in file mapping/rval_expr_evaluators.c at line 66.
|
||||
|
||||
* need to ignore subproc abend ?!?
|
||||
* need to ignore subproc abend (e.g. grep nonesuch) ?!?
|
||||
|
||||
mlr --from myfile.dat put '@v[NR][NR]=$*; emit | "grep somepattern", @*, "index1", "index2"'
|
||||
...
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue