#!/usr/bin/env swiftshell

import SwiftShell

let directories = environment["PATH"]!.split(":")

for directory in directories {
	run("find \(directory) -type f -perm +ugo+x -print") |> standardoutput
}

#!/usr/bin/env swiftshell

import SwiftShell

let directories = environment["PATH"]!.split(":")

for directory in directories {
	run("find \"\(directory)\" -type f -perm +ugo+x -print") |> standardoutput
}

Put quotes around "directory" in case one of them contains spaces.
Put quotes around "directory" in case one of them contains spaces.
