[prev in list] [next in list] [prev in thread] [next in thread]
List: util-linux-ng
Subject: Re: [PATCH 01/16] whereis: tell when mandatory option is missing
From: Karel Zak <kzak () redhat ! com>
Date: 2015-02-24 9:40:07
Message-ID: 20150224094007.GE19430 () ws ! net ! home
[Download RAW message or body]
On Sun, Feb 22, 2015 at 02:41:31PM +0000, Sami Kerola wrote:
> misc-utils/whereis.c | 8 +++++++-
> 1 file changed, 7 insertions(+), 1 deletion(-)
Benno is right, see construct_dirlist_from_argv(), the dir list is
terminated by arbitrary option, it checks for '-'.
The expected use-case is "<dirlist> <search-restriction> <pattern>",
for example:
whereis -M /usr/share/man/man1 -m ls
Karel
--
Karel Zak <kzak@redhat.com>
http://karelzak.blogspot.com
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic