Problem
I am not seeing consistent behavior using the find(C) command.
In the following example, I am trying to display all files with the string: "tune" in their names that are located within the subdirectory /etc/conf:
# find /etc/conf -name \*tune\* -printThis command does not work; no files are returned.
The find(C) commands:# find /etc/conf/. -name \*tune\* -print
# find /etc/conf/.. -name \*tune\* -printdo work; files are returned.The find command that does not work did work under releases previous to SCO OpenServer Release 5.0.
Why does find no longer work as expected? Cause
The find(C) command does not cross symbolic links.
Solution
One of the features of the Software Storage Objects (SSO) model is that it relies heavily on symbolic links.
The find(C) command will not cross a symbolic link unless you
specify the "follow" directive. The /etc/conf directory
happens to be a symbolic link to the SSO subsystem directories.# find /etc/conf -follow -name \*tune\* -printUsing the example (above) that did not work, adding "follow" to the find(C) options list will cause all files to be correctly returned.
See also
man pages for find(C), ln(C), or symlink(S).