Bug 159178 - rmuser(8): cannot work from stdin and generates wrong error message
Summary: rmuser(8): cannot work from stdin and generates wrong error message
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 8.2-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-25 11:10 UTC by Carl
Modified: 2018-01-03 05:16 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Carl 2011-07-25 11:10:07 UTC
The 'adduser' utility can accept its input from stdin using the "-f -"
syntax. The 'rmuser' utility does not claim to support this in its man
page and produces a bizarre error message if tried:

  # echo useless | rmuser -yv -f -
  usage: find [-H | -L | -P] [-EXdsx] [-f path] path ... [expression]
         find [-H | -L | -P] [-EXdsx] -f path [path ...] [expression]
  rmuser: (-) does not exist or does not contain any user names.

IMHO, symmetry demands that 'rmuser' accept "-f -" for stdin input, just
like 'adduser'. In the absence of that very desirable feature, it should
at least not be spitting out syntax help for the 'find' utility and it
should not be confusing the argument for the -f option with a user name.

How-To-Repeat: Do this:

  # echo useless | rmuser -yv -f -
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:58:51 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped