Skip to content

od: Interprets options after filename as extra filenames #8617

@waveform80

Description

@waveform80

Discovered while testing rust-coreutils in current Ubuntu questing dailies. The rpi-eeprom-update script (from package rpi-eeprom) includes a call to "od" where the options are placed after the input filename. With gnu-coreutils, the following occurs:

$ printf "\x68\x1c\xbb\xfd" > build-timestamp
$ gnuod build-timestamp -v -An -t x2
 1c68 fdbb

Under rust-coreutils, assuming the same build-timestamp contents:

$ od build-timestamp -v -An -t x2
od: -v: No such file or directory (os error 2)
od: -An: No such file or directory (os error 2)
od: -t: No such file or directory (os error 2)
od: x2: No such file or directory (os error 2)
0000000 1c68 fdbb
0000004

With the options placed before the filename, both operate similarly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions