Skip to content

find: -printf rejects a trailing backslash #880

Closed

Description

@SichenLiang

A -printf format ending in a single backslash fails with Unexpected EOF on uutils main (c1aeb11).
I ran this once with GNU findutils 4.11.0 and once with uutils find:

tmp=$(mktemp -d)
cd "$tmp"
touch a
LC_ALL=C find a -printf 'x\'

GNU prints x\, warns that the escape is followed by nothing, and exits 0. uutils prints nothing, reports Unexpected EOF, and exits 1.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions