in reply to Wrong idioms

The above is, perhaps, an unlikely situation... but the bash equiv of -n would be length($filename)....

Does that do what you want?