Bug 219467

Summary: `mtree -R type -k flags` prints out type= keyword attributes, contrary to what the manpage says it should do
Product: Base System Reporter: Enji Cooper <ngie>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: New ---    
Severity: Affects Only Me CC: brooks, emaste
Priority: ---    
Version: CURRENT   
Hardware: Any   
OS: Any   

Description Enji Cooper freebsd_committer freebsd_triage 2017-05-23 01:22:59 UTC
Per mtree(8), passing `-R type -k flags` should clear omit type keywords from
the spec created via mtree:

     -k keywords        Use the type keyword plus the specified (whitespace or
                        comma separated) keywords instead of the current set
                        of keywords.  If `all' is specified, use all of the
                        other keywords.  If the type keyword is not desired,
                        suppress it with -R type.

Trying this though, demonstrates that that is not the case:

$ sudo mtree -cn -R type -k flags -p /usr/bin/ -x | grep type=
/set type=file flags=uarch
.               type=dir
    chfn        type=link
    chsh        type=link
    cpio        type=link
    mailq       type=link
    newaliases  type=link
    perl        type=link
    perl5       type=link
    pgrep       type=link
    pkill       type=link
    stelnet     type=link
    tar         type=link
    ypchfn      type=link
    ypchpass    type=link
    ypchsh      type=link
    yppasswd    type=link
Comment 1 Enji Cooper freebsd_committer freebsd_triage 2017-05-23 01:23:36 UTC
(In reply to Ngie Cooper from comment #0)

*clear omit -> omit