I recently did a fresh install of fedora core 1, and everything has been going fine. Tonight, however, I went to use a bash script I had written under the old fedora install (and it worked) and noticed it no longer worked. Upon further investigation, the 'find' command is acting very very weird.. see below:
[smthmlk@fields smthmlk]$ ls dcc Desktop evolution files Mail mp3s rpms school websites [smthmlk@fields smthmlk]$ find . -iregex ".*" [smthmlk@fields smthmlk]$ find -name "mp3s" ./mp3s [smthmlk@fields smthmlk]$ find -regex "mp3s" [smthmlk@fields smthmlk]$
What is up with that? all the regex options dont work anymore!
I went ahead and removed the rpm, findutils-4.1.7-17, and replaced it with an older one I found on rpmfind.net: findutils-4.1.7-9 ... same result!
Regex works in every other script / program just fine tho (at least to my knowledge). What can i do to fix this?? Thanks.
-smthmlk
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Friday 16 January 2004 07:27, smoothmilk wrote:
I recently did a fresh install of fedora core 1, and everything has been going fine. Tonight, however, I went to use a bash script I had written under the old fedora install (and it worked) and noticed it no longer worked. Upon further investigation, the 'find' command is acting very very weird.. see below:
I seem to recall [1] seeing a revision history for glibc or some other library recently which had had edits to its regular expression exported function -- maybe something broke there.
- -Andy
[1] Statements beginning ''I seem to recall'' indicate I'm running from my swiss cheese of a memory only, proceed with caution :-)
- -- Find your answer without waiting for replies.... Searchable list archives at http://marc.theaimsgroup.com/?l=fedora-list&r=1&w=2
On Fri, 2004-01-16 at 02:27, smoothmilk wrote:
[smthmlk@fields smthmlk]$ find . -iregex ".*" [smthmlk@fields smthmlk]$ find -name "mp3s" ./mp3s [smthmlk@fields smthmlk]$ find -regex "mp3s"
-regex matches the full pathname rather than the filename. -name matches the filename without the path. man and info pages for find explain further.
See if this works: find -regex "./mp3s"