[SURBL-Discuss] OT: tcsh filename expansion in file test

Steven Champeon schampeo at hesketh.com
Wed Oct 13 16:30:06 CEST 2004

on Wed, Oct 13, 2004 at 06:31:37AM -0700, Jeff Chan wrote:
> UNIX question not directly related to SURBLs: does anyone know
> how to make filename expansion (globbing) happen inside a
> filetest in a tcsh script:
>   unset noglob
>   if (-e *.surbl.org.changed.multi) then
>     ...
> Didn't work.  It's supposed to test the existence of any files
> *.surbl.org.changed.multi .  Using a specific file name like
> ws.surbl.org.changed.multi works, but I'd like to wildcard it.

Don't use tcsh for programming, would be my first hint.
join us!   http://hesketh.com/about/careers/web_designer.html       join us! 
hesketh.com/inc. v: +1(919)834-2552 f: +1(919)834-2554 w: http://hesketh.com
join us!   http://hesketh.com/about/careers/account_manager.html    join us!

More information about the Discuss mailing list