bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #15037] [Wishlist] find -ls isn't flexible enough but can't be emul


From: James Youngman
Subject: [bug #15037] [Wishlist] find -ls isn't flexible enough but can't be emulated via -printf
Date: Wed, 23 Nov 2005 06:26:17 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.7.12) Gecko/20050922 Firefox/1.0.7 (Ubuntu package 1.0.7)

Update of bug #15037 (project findutils):

             Assigned to:                    None => jay                    

    _______________________________________________________

Follow-up Comment #1:

Off the top of my head, the other thing that makes it difficult to emulate
-ls with -printf is the fact that there is no way to make it indicate the
target of a symbolic link:

~$ rm -f foo bar; ln -s foo bar; find bar -ls
165262 0 lrwxrwxrwx 1 jay jay 3 Nov 22 22:17 bar -> foo

So we'd need something that expands to " -> foo" if a file is a symbolic
link, and to nothing otherwise.

We're running out of letters for format directives. I'm toying with the idea
of supporting %{word} format directives, but the idea is vague as yet. Please
phrase your new support request in terms of what you'd like the new directives
to expand to, don't worry for the moment about what we'll call them.

The attraction of %{foo} is that maybe we could also consider %{foo%%.jpg}
and %{bar:-baz}, not to mention '-exec% foo %{ugh} ;'. Of course, the
countervailing argument is that this would be a 10% increase in the size of
the code (to pluck a number from thin air) for the convenience of 1% of the
users.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=15037>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]