ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominique Devienne" <ddevie...@gmail.com>
Subject Re: Unix commads behaving different in Ant task
Date Mon, 08 May 2006 17:54:31 GMT
> $ rm *.txt # be carefull to run this in some temp dir
> $ mkdir newdir
> $ touch newdir/something.txt newdir/anotherthing.txt
> newdir/yetanother.txt
> $ find ./ -name *.txt
> ./newdir/something.txt
> ./newdir/anotherthing.txt
> ./newdir/yetanother.txt
>
> It works as expected because the shell does not expand the asterisk.

This is not true for me, at least on Solaris with tcsh (and I suspect
traditional shells behave the same). The shell always expands the
asterisk, and reports an error (find: no match) when the asterisk
doesn't match any file in the current dir. The same with ls, etc...
--DD

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message