update glob to v3.1.9

This commit is contained in:
Nathan Rajlich 2012-06-06 14:32:51 -07:00
parent aa8bc9d7cf
commit 41626d9842
5 changed files with 174 additions and 18 deletions

View file

@ -38,7 +38,7 @@ function alphasort (a, b) {
globs.forEach(function (pattern) {
var echoOutput
tap.test(pattern, function (t) {
var bashPattern = pattern //.replace(/(\(|\||\))/g, "\\$1")
var bashPattern = pattern
, cmd = "shopt -s globstar && " +
"shopt -s extglob && " +
"shopt -s nullglob && " +
@ -53,7 +53,7 @@ globs.forEach(function (pattern) {
cp.stderr.on("data", function (c) {
process.stderr.write(c)
})
cp.on("exit", function () {
cp.stdout.on("close", function () {
echoOutput = flatten(out)
if (!echoOutput) echoOutput = []
else {