Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/sys.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClement Farabet <clement.farabet@gmail.com>2011-07-26 06:53:38 +0400
committerClement Farabet <clement.farabet@gmail.com>2011-07-26 06:53:38 +0400
commiteb3ce187499a4d43d19ea598172c3edb5051a256 (patch)
treeb675b68aa24fc22c13381d745ba3f4114b542493
parent5f9a7decfc264f4f481f5fa03c9e4d4a01061b4a (diff)
Fixed bug on prefix parser.
-rw-r--r--sys.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys.lua b/sys.lua
index 82bf65f..8eece02 100644
--- a/sys.lua
+++ b/sys.lua
@@ -115,7 +115,7 @@ lla = function() return execute 'ls -la' end
--------------------------------------------------------------------------------
-- prefix
--------------------------------------------------------------------------------
-prefix = execute('which lua'):gsub('/bin/lua\n','')
+prefix = execute('which lua'):gsub('//','/'):gsub('/bin/lua\n','')
--------------------------------------------------------------------------------
-- always returns the path of the file running