environment: add using list to usage example of os-env word

db4
Keita Haga 2011-02-20 04:08:45 +09:00
parent 70d06dc4c7
commit 77922f61f7
1 changed files with 6 additions and 2 deletions

View File

@ -5,7 +5,7 @@ IN: environment
HELP: (os-envs)
{ $values
{ "seq" sequence } }
{ $description "Returns a sequence of key/value pairs from the operating system." }
{ $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." }
{ $examples
"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