On Tue, 2007-10-09 at 13:17 +0200, Alexis Ballier wrote:
> > if [ "${f/config/}" != "${f}" ]
> > Should be
> > if [ "${f#*config*}" != "${f}" ]
> 
> changed that one, the "semantics" looks better indeed; what is wanted
> here is to exclude $f containing "config". Am I missing something when
> I understand it as the exact same thing but more readable ?

The former is bash specific, the later is POSIX. Both do different
things though.

Thanks

Roy

-- 
[EMAIL PROTECTED] mailing list

Reply via email to