SPUG: $0 dispatch for named links (on Windows without links)

Yitzchak Scott-Thoennes sthoenna at efn.org
Mon Jun 23 13:09:37 PDT 2008

Reformatted to allow a contextual reply without quoting the whole thing.

On Mon, June 23, 2008 11:10 am, Michael R. Wolf wrote:
> Charles DeRykus wrote:
>> Hm, does your scenario preclude just passing
>> the 'fake_name' as the first argument for instance:
>> $0 = shift;
>> if ( $0 eq "foo" ) { ... elsif ( ... )
> No, it doesn't preclude that.  Thanks for the suggestion.
> It's how I ultimately worked around it.  I had to add some logic,
> however. I didn't want to blindly grab the first argument.  In effect, my
> code enforced the requirement for a limited number of values instead of
> allowing a filename to do the same thing.

How about an environment variable, instead?

A sig borrowed from Larry Hall (sic):
A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

More information about the spug-list mailing list