Skip to content

diff: clustered short options such as -ut and -qst are rejected #298

Description

@SichenLiang

GNU documents that short options without arguments may be combined. uutils accepts these options separately, but rejects the combined forms.

$ printf 'a\nb\n' > a; printf 'a\nc\n' > b
$ diff -qst a b; echo $?

GNU diff 3.12 prints Files a and b differ and exits 1. uutils reports unrecognized option '-qst' and exits 2. diff -ut a b is rejected in the same way, while diff -q -s -t a b works.

#97 and #193 discuss replacing the option parser more generally.

I have a fix ready and will open the PR once #291 is merged, since it builds on that change.

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