query
On this page

makeSearchPath

lib.makeSearchPath

Docs pulled from | This Revision | about 1 hour 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"
(lib.strings.makeSearchPath)

Noogle also knows

Aliases