## STAGING
-* Font tag should only change font in edit region
* centering logic in view.c seems broken
+* Font tag should only change font in edit region, not tags region
* implement new version of tfetch (plumb)
* implement tide registrar
* implement tctl command
# Function Definitions
#-------------------------------------------------------------------------------
def expand(str)
- str
+ str = str.gsub /\$(\$|[a-zA-Z0-9]+)/ do |match|
+ text = ("$" == match[1..-1] ? "$" : (ENV[match[1..-1]] || ""))
+ end
+ #(str.match('[ \t\r\n]') ? "'#{str.gsub('\\','\\\\')}'" : str)
end
def rule(&block)
end
def set(var, val)
- ENV[var] = val
+ ENV[var] = expand(val)
end
def unset(var)
end
def exec(cmd)
- if not system(cmd) then
- raise "command failed"
- end
+ require 'pp'
+ pp expand(cmd)
+ #if not system(expand(cmd)) then
+ # raise "command failed"
+ #end
end
def launch(cmd)
end
def import(path)
- if File.file?(expand(path)) then
- load(path)
- end
+ load(path) if File.file?(expand(path))
end
#-------------------------------------------------------------------------------