Fix for clipins command

0 views
Skip to first unread message

Paul M. Boren

unread,
Jul 9, 2008, 12:28:40 AM7/9/08
to YubNub
Awhile back I created the clipins command, but wasn't able to get it
to redirect to the Cl1P.net homepage. The problem seems to be that
the var command already redirects to its man page when issued without
any arguments, so a Null value for %s causes errors.

This following re-write uses a kludge where the var command returns a
Null value.

http://cl1p.net/{var {ifEmpty -value %s -then 008 -else %s}}[no url
encoding]

Example: clipins2 foo
where the value of var foo is bar
Returns: http://cl1p.net/bar

Example: clipins
where the value of var 008 is Null
Returns: http://cl1p.net/

Any ideas on a better solution to this?

-- Paul



Reply all
Reply to author
Forward
0 new messages