Strange find behavior?

Strange find behavior?

Post by Mark Neidor » Sat, 06 Jan 1996 04:00:00



Hi,

I'm trying to upgrade my Xwindows from X11 to X12.  I've downloaded
all of the files that I need, and I wanted to ungzip and untar them
all in one fine step.  OK, so I decided to take one of the files, make
a directory under tmp (a logical place for a temporary directory???)
and work out the command there.  Bottom line is that this command:

find /tmp/tmp -name *.tgz -exec gunzip {} \; | tar xfBp -

actually worked. (I was in the /tmp/tmp directory when I ran it)
Needless to say it made me feel good about getting it to work.  

Now the problem:  I placed all of the .tgz files (that's the way they
were stored on the net) in the /usr/X11R6 directory and substituted
/usr/X11R6 for /tmp/tmp in above, changed to the /usr/X11R6 directory
and tried to run the command.  find returned an error telling me that
directories must preceed expressions.  Now I think that error is
bogus, but my questions are:  why isn't the command working and how
can I make it work?  If it matters, I noticed that the permission of
/tmp is drwxrwxrwl (probably as it should be, but does the 'l' come
into play in this entire question?)

Many thanks,

     <<  Mark  >>
                ___
              __HHH__  
               (0 0)
  ---------oOO--\_/--OOo---------------------------------------------------
  |   Mark Neidorff                   |  "Don't just stand there.         |

  |   Just Answers!                   |   James T. Kirk - S.T. - V        |
  | Computer Systems Solutions        |                                   |
  -------------------------------------------------------------------------

 
 
 

1. Strange find behaviour...

Hi,

I did the following command:

$ find shab*  -name CVS -prune -o  -newer now -print -cpio patch.cpio
shab/htdocs/DE/forms/XMLLIB
shab/htdocs/DE/forms/XMLLIB/hra_offices.xml
shab/htdocs/EN/forms/XMLLIB
shab/htdocs/EN/forms/XMLLIB/hra_offices.xml
shab/htdocs/FR/forms/XMLLIB
shab/htdocs/FR/forms/XMLLIB/hra_offices.xml
shab/htdocs/IT/forms/XMLLIB
shab/htdocs/IT/forms/XMLLIB/hra_offices.xml

but then:
% cpio -itv < patch.cpio

-rw-r-----    1 tomcat   shab         384 Jul 30 17:44 2002,
shab/htdocs/DE/forms/XMLLIB/CVS/Entries
-rw-r-----    1 tomcat   shab          27 Jul 30 17:44 2002,
shab/htdocs/DE/forms/XMLLIB/CVS/Tag
-rwxr-x---    1 tomcat   shab        8881 Jul 30 17:44 2002,
shab/htdocs/DE/forms/XMLLIB/hra_offices.xml
drwxr-s---    3 tomcat   shab           0 Jul 30 17:44 2002,
shab/htdocs/DE/forms/XMLLIB
-rw-r-----    1 tomcat   shab         384 Jul 30 17:44 2002,
shab/htdocs/EN/forms/XMLLIB/CVS/Entries
-rw-r-----    1 tomcat   shab          27 Jul 30 17:44 2002,
shab/htdocs/EN/forms/XMLLIB/CVS/Tag
-rwxr-x---    1 tomcat   shab        8881 Jul 30 17:44 2002,
shab/htdocs/EN/forms/XMLLIB/hra_offices.xml
drwxr-s---    3 tomcat   shab           0 Jul 30 17:44 2002,
shab/htdocs/EN/forms/XMLLIB
-rw-r-----    1 tomcat   shab         384 Jul 30 17:44 2002,
shab/htdocs/FR/forms/XMLLIB/CVS/Entries
-rw-r-----    1 tomcat   shab          27 Jul 30 17:44 2002,
shab/htdocs/FR/forms/XMLLIB/CVS/Tag
-rwxr-x---    1 tomcat   shab        8881 Jul 30 17:44 2002,
shab/htdocs/FR/forms/XMLLIB/hra_offices.xml
drwxr-s---    3 tomcat   shab           0 Jul 30 17:44 2002,
shab/htdocs/FR/forms/XMLLIB
-rw-r-----    1 tomcat   shab         384 Jul 30 17:44 2002,
shab/htdocs/IT/forms/XMLLIB/CVS/Entries
-rw-r-----    1 tomcat   shab          27 Jul 30 17:44 2002,
shab/htdocs/IT/forms/XMLLIB/CVS/Tag
-rwxr-x---    1 tomcat   shab        8881 Jul 30 17:44 2002,
shab/htdocs/IT/forms/XMLLIB/hra_offices.xml
drwxr-s---    3 tomcat   shab           0 Jul 30 17:44 2002,
shab/htdocs/IT/forms/XMLLIB

Or, in other words, even though I filterd out the CVS related files
(-print didn't show them) they did get into the cpio archive. Why?

Can some find guru explain this to me?

Krist

2. Little holes in image

3. FIND: strange behaviour. why?

4. fujitsu pt510 ( again ) and touchscreen

5. strange `find' behavior

6. Linux - Internet and Pc's

7. Strange NFS behaviour

8. Fix Alpha cond_syscall

9. Strange Netscape Behavior with RH 6.2

10. Strange behavior of socket communication

11. Strange behaviour of "setbuf" on HP

12. Strange Behaviour of sar and cpuhog

13. Strange login behavior