makeSearchPath
lib.makeSearchPath
Docs pulled from | This Revision | 21 minutes ago
Construct a Unix-style, colon-separated search path consisting of
the given subDir
appended to each of the given paths.
Inputs
subDir
-
Directory name to append
paths
-
List of base paths
Type
makeSearchPath :: string -> [string] -> string
Examples
makeSearchPath
usage example
makeSearchPath "bin" ["/root" "/usr" "/usr/local"]
=> "/root/bin:/usr/bin:/usr/local/bin"
makeSearchPath "bin" [""]
=> "/bin"