URL:
  <https://savannah.gnu.org/bugs/?56820>

                 Summary: Translation issue
                 Project: findutils
            Submitted by: None
            Submitted on: mer. 28 août 2019 00:05:26 UTC
                Category: find
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: Roger B.
        Originator Email: g6xb7g1gvr2r...@jetable.org
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.6.0
           Fixed Release: None

    _______________________________________________________

Details:

1. version of findutils

find (GNU findutils) 4.6.0.225-235f
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Eric B. Decker, James Youngman, and Kevin Dalley.
Fonctions activées : D_TYPE O_NOFOLLOW(enabled) LEAF_OPTIMISATION
FTS(FTS_CWDFD) CBO(level=2)

2. what you were trying to do

Find every regular file in the upper level directory with a maxdepth of 1 to
apply on them a call to grep

3. the exact command line that you used

$ find .. -type f -maxdepth 1 -exec grep -Hin rasoir {} \;

4. what you expected to happen

Get my result or at least a meaningful error message, instead of that I got a
very curious error (or rather warning) message saying that I was not using
-maxdepth after -find. 

5. precisely what did happen.

Here is the exact message :

$ find .. -type f -maxdepth 1 -exec grep -Hin rasoir {} \;
find: attention : vous avez spécifié l'option -maxdepth après un argument
qui n'est pas une option -type mais les options sont positionnelles (-maxdepth
affecte les tests spécifiés avant aussi bien qu'après). SVP spécifiez les
options avant les autres arguments.

so I used LC_ALL ennvironment variable to get the English message and as a
result I got to understand what was the real meaning of the message

$ LC_ALL=en_US find .. -type f -maxdepth 1 -exec grep -Hin rasoir {} \;
find: warning: you have specified the -maxdepth option after a non-option
argument -type, but options are not positional (-maxdepth affects tests
specified before it as well as those specified after it).  Please specify
options before other arguments.

Which is what I did and got the expected result without any warning just by
exchanging the position of -maxdepth and -type. In order to make the message
more meaningful in French I suggest the use of ',' or '(',')', or even
rewriting the sentence.




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?56820>

_______________________________________________
  Message posté via Savannah
  https://savannah.gnu.org/


Reply via email to