query
On this page

toShellVars

lib.strings.toShellVars



Translate an attribute set into corresponding shell variable declarations using toShellVar.

Example

let
  foo = "value";
  bar = foo;
in ''
  ${toShellVars { inherit foo bar; }}
  [[ "$foo" == "$bar" ]]
''

Type

attrsOf (string | listOf string | attrsOf string) -> string

Arguments

  • [vars]

Noogle also knows

Aliases