Added access to environment variables, and new test script listallexecutablesinpath.

This commit is contained in:
Kare Morstol
2014-08-28 03:15:07 +02:00
parent 6350fda52a
commit a31f018c6b
2 changed files with 9 additions and 0 deletions
@@ -0,0 +1,8 @@
import SwiftShell
let directories = environment["PATH"]!.split(":")
for directory in directories {
run("find \(directory) -type f -perm +ugo+x -print") |> standardoutput
}