summaryrefslogtreecommitdiff
path: root/scripts/context/ruby/base/kpseremote.rb
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/context/ruby/base/kpseremote.rb')
-rw-r--r--scripts/context/ruby/base/kpseremote.rb19
1 files changed, 13 insertions, 6 deletions
diff --git a/scripts/context/ruby/base/kpseremote.rb b/scripts/context/ruby/base/kpseremote.rb
index f5a72b712..f1f3cb10f 100644
--- a/scripts/context/ruby/base/kpseremote.rb
+++ b/scripts/context/ruby/base/kpseremote.rb
@@ -80,25 +80,32 @@ class KpseRemote
@kpse.expand_variables(@tree)
end
def expand_braces(str)
- @kpse.expand_braces(@tree,str)
+ clean_name(@kpse.expand_braces(@tree,str))
end
def expand_path(str)
- @kpse.expand_path(@tree,str)
+ clean_name(@kpse.expand_path(@tree,str))
end
def expand_var(str)
- @kpse.expand_var(@tree,str)
+ clean_name(@kpse.expand_var(@tree,str))
end
def show_path(str)
- @kpse.show_path(@tree,str)
+ clean_name(@kpse.show_path(@tree,str))
end
def var_value(str)
- @kpse.var_value(@tree,str)
+ clean_name(@kpse.var_value(@tree,str))
end
def find_file(filename)
- @kpse.find_file(@tree,filename)
+ clean_name(@kpse.find_file(@tree,filename))
end
def find_files(filename,first=false)
+ # dodo: each filename
@kpse.find_files(@tree,filename,first)
end
+ private
+
+ def clean_name(str)
+ str.gsub(/\\/,'/')
+ end
+
end