Re: Directory name problem...

Brandon S. Allbery KF8NH (allbery@kf8nh.apk.net)
Sun, 25 Oct 1998 15:52:53 -0500


In message <199810252024.WAA56334@vipunen.hut.fi>, Juha Virtanen writes:
+-----
| Tim Smith writes:
| :>> % Q> #!/bin/sh
| :>> % Q> XYZZY="`find / -name core`"
| :>> % Q> for LOOP in `find $XYZZY | sort -ru` ; do
| :>> % Q> rm -fr $LOOP
| :>> % Q> done
| :>
| :>You know, interesting things will happen when he runs that script
| :>and there are *not* any files named core around...
|
| Nothing interesting happena as
| rm -rf
| as itself does nothing and won't give any error message.
+--->8

How about `find' with no arguments, though?

-- 
brandon s. allbery	[os/2][linux][solaris][japh]	 allbery@kf8nh.apk.net
system administrator	     [WAY too many hats]	   allbery@ece.cmu.edu
electrical and computer engineering					 KF8NH
carnegie mellon university

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/