Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Nov 2019 05:37:45 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 241906] `locale -k` with an invalid keyword exits with 0
Message-ID:  <bug-241906-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | raw e-mail

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@FreeBSD.org
          Reporter: alex+freebsd@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.

help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-241906-227>