environment: add using list to usage example of os-env word
parent
70d06dc4c7
commit
77922f61f7
|
@ -5,7 +5,7 @@ IN: environment
|
||||||
|
|
||||||
HELP: (os-envs)
|
HELP: (os-envs)
|
||||||
{ $values
|
{ $values
|
||||||
|
|
||||||
{ "seq" sequence } }
|
{ "seq" sequence } }
|
||||||
{ $description "Returns a sequence of key/value pairs from the operating system." }
|
{ $description "Returns a sequence of key/value pairs from the operating system." }
|
||||||
{ $notes "In most cases, use " { $link os-envs } " instead." } ;
|
{ $notes "In most cases, use " { $link os-envs } " instead." } ;
|
||||||
|
@ -22,7 +22,11 @@ HELP: os-env
|
||||||
{ $description "Looks up the value of a shell environment variable." }
|
{ $description "Looks up the value of a shell environment variable." }
|
||||||
{ $examples
|
{ $examples
|
||||||
"This is an operating system-specific feature. On Unix, you can do:"
|
"This is an operating system-specific feature. On Unix, you can do:"
|
||||||
{ $unchecked-example "\"USER\" os-env print" "jane" }
|
{ $unchecked-example
|
||||||
|
"USING: environment io ;"
|
||||||
|
"\"USER\" os-env print"
|
||||||
|
"jane"
|
||||||
|
}
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
HELP: os-envs
|
HELP: os-envs
|
||||||
|
|
Loading…
Reference in New Issue