Help -- this seems simple!

Richard Caloggero rich at eddie.MIT.EDU
Sat Apr 23 05:48:38 AEST 1988



     Can anyone tell me why this script doesn't print anything?

----------
#!/bin/sh
set -vx
names="-name '*.c' -o -name '*t*'"
find . \( $names \) -print

----------

     It doesn't print anything!
Thanx in advance.

----- Results of running the above script ... -----
Script started on Fri Apr 22 15:40:09 1988
% 
% test.sh^U
chmod a+x test.sh
% test.sh
names="-name '*.c' -o -name '*t*'"
names=-name '*.c' -o -name '*t*'
find . \( $names \) -print
+ find . ( -name '*.c' -o -name '*t*' ) -print 

% exit
% 
script done on Fri Apr 22 15:41:02 1988



     Could you mail me the answers since I don't
read these groups.



-- 
						-- Rich (rich at eddie.mit.edu).
	The circle is open, but unbroken.
	Merry meet, merry part,
	and merry meet again.



More information about the Comp.unix.wizards mailing list