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.
This has to do with making multi update sooner when the individual lists update, so maybe it's relevant. ;-)
Jeff C. -- "If it appears in hams, then don't list it."
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.
On Wednesday, October 13, 2004, 7:30:06 AM, Steven Champeon wrote:
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.
Yeah, I know tcsh is frowned upon for scripting.
Andy came up with the answer: anchoring. ./*foo worked where *foo failed.
Jeff C. -- "If it appears in hams, then don't list it."