bugfindutils - Bugs: bug #65386, unknown predicate error when using...

 
 

bug #65386: unknown predicate error when using '-1M' as lt 1

Submitter:  None
Submitted:  Thu 29 Feb 2024 03:58:40 AM UTC
   
 
Category:  find Severity:  3 - Normal
Item Group:  None Status:  Working as Intended
Privacy:  Public Assigned to:  jay
Originator Name:  Andrew Scott Originator Email:  -email is unavailable-
Open/Closed:  Open Release:  4.9.0
Fixed Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 29 Feb 2024 06:42:05 PM UTC, comment #1: 

(, ), -size and -1M all need to be separate arguments to find.

If you are using a standard Unix-like shell, that means they need spaces around them.

James Youngman <jay>
Group administrator
Thu 29 Feb 2024 03:58:40 AM UTC, original submission:  

find . (-type f) -a (-size -1M) recup_dir.101
bash: syntax error near unexpected token `('
find . (-type f) -a -size'-1M' recup_dir.101
bash: syntax error near unexpected token `('
find . -type f -a -size'-1M' recup_dir.101
find: unknown predicate `-size-1M'
find . -type f -a -size -1M recup_dir.101
find: paths must precede expression: `recup_dir.101'
find: possible unquoted pattern after predicate `-size'?
man find
find . -type f -a -size -999k recup_dir.101
find: paths must precede expression: `recup_dir.101'
find: possible unquoted pattern after predicate `-
find . -type f -a -size %-999k recup_dir.101
find: Invalid argument `%-999k' to -size
find . -type f -a -size-999k recup_dir.101
find: unknown predicate `-size-999k'
find --version
find (GNU findutils) 4.9.0
Copyright (C) 2022 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.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jay (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-02-29 jay StatusNone Working as Intended
        Assigned toNone jay

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code