http://bugzilla.novell.com/show_bug.cgi?id=591050 http://bugzilla.novell.com/show_bug.cgi?id=591050#c0 Summary: locate (findutils-locate) doesn't accept wildcards as is described in manual Classification: openSUSE Product: openSUSE 11.2 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: nettezzaumanaa@gmail.com QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.17) Gecko/2009122200 SUSE/3.0.17-0.1 Firefox/3.0.17 hi suse developers .. # rpm -qf `which locate` findutils-locate-4.4.0-46.2.i586 # cat /bin/dd >/var/tmp/DSEE.7.0.Linux-X86-zip.tar.gz # cat /bin/dd >/var/tmp/DSEE.7.0.Solaris-Sparc-zip.tar.gz # updatedb --localpaths=/var/tmp/ # locate -i dsee /var/tmp/DSEE.7.0.Linux-X86-zip.tar.gz /var/tmp/DSEE.7.0.Solaris-Sparc-zip.tar.gz # if ! (locate -i 'dsee*solaris*' || locate -i 'dsee.*solaris.*'); then echo what the hell\?; fi what the hell? ^^ it seems like broken pattern parsing engine, locate(1) manpage says this: DESCRIPTION This manual page documents the GNU version of locate. For each given pattern, locate searches one or more databases of file names and displays the file names that contain the pattern. Patterns can contain shell-style metacharacters: `*', `?', and `[]'. The metacharacters do not treat `/' or `.' specially. Therefore, a pattern `foo*bar' can match a file name that contains `foo3/bar', and a pattern `*duck*' can match a file name that contains `lake/.ducky'. Patterns that contain metacharacters should be quoted to protect them from expansion by the shell. . however this works: # locate -i '*dsee*solaris*' /var/tmp/DSEE.7.0.Solaris-Sparc-zip.tar.gz but i still consider it as broken because it's pretty annoying to do things this way and it's not working as is described in docs (Therefore, a pattern `foo*bar' can match a file name that contains `foo3/bar', and a pattern `*duck*' can match a file name that contains `lake/.ducky) .. regards and have a nice day, daniel Reproducible: Always -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.