/usr/share/elvis/scripts/define.ex is in elvis-common 2.2.0-11.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | "A macro for accessing the TechEncyclopaedia easily, without clutter.
alias define {
"fetch a definition from TechEncyclopaedia
local u="define:!1"
if "!1" == ""
then error usage: define TERM
if "!2" != ""
then let u=u;"+!2"
if "!3" != ""
then let t=u;"+!3"
split (u)
}
alias readDEFINE {
local report=0
r http://www.techweb.com/encyclopedia/defineterm?term=!2
set nolocked
try 1,/termDefined/-1d
try /^<tr>/,$d
try g/<img .*>/d
try %s/href="\/encyclopedia\/defineterm?term=/href="define:/g
set bufdisplay=html
set nomod locked
try set nospell
}
|