Skip to content

inconsistency of -d #1110

Description

@ggrothendieck

For enum -d refers to the input and output:

>xan range 3 | xan map "n as n2" | xan fmt -t? | xan -d? enum
index?n?n2
0?0?0
1?1?1
2?2?2

whereas on transform it refers to the input only:

> xan range 3 | xan map "n as n2" | xan fmt -t ? | xan enum -d? | xan transform -d? * "_**2"
index,n,n2
0,0,0
1,1,1
4,4,4

In Miller (mlr) one can specify both the input field separator (--ifs) and the output delimiter (--ofs) on most commands. In qsv -d is the input delimiter and -t is the output delimiter. awk has -F as the input field separator and -v OFS= as the output field separator.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions