Skip to content

shred: a FIFO, a directory and a missing file are reported differently from GNU #15181

Closed

Description

@NdekoCode
$ mkfifo p; mkdir d
$ shred p
shred: p: Not a file
$ shred d
shred: d: Not a file
$ shred missing
shred: missing: No such file or directory

GNU 9.12 refuses a FIFO before opening it, with shred: p: invalid file type, and reports a directory or a missing file as the failure to open them: shred: d: failed to open for writing: Is a directory, shred: missing: failed to open for writing: No such file or directory. A socket gets the open failure too (failed to open for writing: Operation not supported on socket on macOS), where uutils says Not a file. uutils main at a5bc606. This is what shred/fifo.sh in #14705 exercises.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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