[Bug 241906] `locale -k` with an invalid keyword exits with 0

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Nov 12 05:37:46 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241906

            Bug ID: 241906
           Summary: `locale -k` with an invalid keyword exits with 0
           Product: Base System
           Version: 12.0-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: bugs at FreeBSD.org
          Reporter: alex+freebsd at strugee.net

If I run, for example, `locale -k nonexistant`, I get a helpful error message:
`Unknown keyword: 'nonexistant'`.

However, `locale` in this case still exits with an exit code of 0. It should
probably exit with nonzero instead to indicate the failure in finding the
keyword.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list