diff options
author | Hans Hagen <pragma@wxs.nl> | 2010-04-10 13:44:00 +0200 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2010-04-10 13:44:00 +0200 |
commit | c39ede4f171de15fc77addefe788b0ed3bff4484 (patch) | |
tree | ed2af1623059550f8e0056e71c690a8eba2fdb70 /scripts | |
parent | a5d3707be9e544069a94b3c8d7b51c7b31e506e5 (diff) | |
download | context-c39ede4f171de15fc77addefe788b0ed3bff4484.tar.gz |
beta 2010.04.10 13:44
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/context/lua/luatools.lua | 3 | ||||
-rw-r--r-- | scripts/context/ruby/fcd_start.rb | 2 | ||||
-rw-r--r-- | scripts/context/stubs/mswin/luatools.lua | 3 | ||||
-rwxr-xr-x | scripts/context/stubs/unix/luatools | 3 |
4 files changed, 8 insertions, 3 deletions
diff --git a/scripts/context/lua/luatools.lua b/scripts/context/lua/luatools.lua index afff8a535..2a6e904fe 100644 --- a/scripts/context/lua/luatools.lua +++ b/scripts/context/lua/luatools.lua @@ -5280,7 +5280,8 @@ resolvers.ownbin = gsub(resolvers.ownbin,"\\","/") function resolvers.getownpath() local ownpath = resolvers.ownpath or os.selfdir - if not ownpath or ownpath == "" then +print(ownpath,os.selfdir) + if not ownpath or ownpath == "" or ownpath == "unset" then ownpath = args[-1] or arg[-1] ownpath = ownpath and file.dirname(gsub(ownpath,"\\","/")) if not ownpath or ownpath == "" then diff --git a/scripts/context/ruby/fcd_start.rb b/scripts/context/ruby/fcd_start.rb index 28f407c76..b1fa42a2a 100644 --- a/scripts/context/ruby/fcd_start.rb +++ b/scripts/context/ruby/fcd_start.rb @@ -38,6 +38,8 @@ # fcd [--find] whatever . (last choice with this pattern) # fcd --list +# todo: HOMEDRIVE\HOMEPATH + require 'rbconfig' class FastCD diff --git a/scripts/context/stubs/mswin/luatools.lua b/scripts/context/stubs/mswin/luatools.lua index afff8a535..2a6e904fe 100644 --- a/scripts/context/stubs/mswin/luatools.lua +++ b/scripts/context/stubs/mswin/luatools.lua @@ -5280,7 +5280,8 @@ resolvers.ownbin = gsub(resolvers.ownbin,"\\","/") function resolvers.getownpath() local ownpath = resolvers.ownpath or os.selfdir - if not ownpath or ownpath == "" then +print(ownpath,os.selfdir) + if not ownpath or ownpath == "" or ownpath == "unset" then ownpath = args[-1] or arg[-1] ownpath = ownpath and file.dirname(gsub(ownpath,"\\","/")) if not ownpath or ownpath == "" then diff --git a/scripts/context/stubs/unix/luatools b/scripts/context/stubs/unix/luatools index afff8a535..2a6e904fe 100755 --- a/scripts/context/stubs/unix/luatools +++ b/scripts/context/stubs/unix/luatools @@ -5280,7 +5280,8 @@ resolvers.ownbin = gsub(resolvers.ownbin,"\\","/") function resolvers.getownpath() local ownpath = resolvers.ownpath or os.selfdir - if not ownpath or ownpath == "" then +print(ownpath,os.selfdir) + if not ownpath or ownpath == "" or ownpath == "unset" then ownpath = args[-1] or arg[-1] ownpath = ownpath and file.dirname(gsub(ownpath,"\\","/")) if not ownpath or ownpath == "" then |