replace() gets confused if you give it a singleton list as its parameter.
authorDavid Given <dg@cowlark.com>
Thu, 11 Aug 2016 22:19:30 +0000 (00:19 +0200)
committerDavid Given <dg@cowlark.com>
Thu, 11 Aug 2016 22:19:30 +0000 (00:19 +0200)
first/ackbuilder.lua

index c7798e6..b59cb2a 100644 (file)
@@ -253,7 +253,7 @@ local function dirname(...)
 end
 
 local function replace(files, pattern, repl)
-       return dotocollection(files,
+       return dotocollection({files},
                function(filename)
                        return filename:gsub(pattern, repl)
                end