YS Environment Vars
YS has a number of environment variables that can be set to control its
behavior.
These variables each begin with YS_
and are all uppercase with underscores
separating words.
-
YSPATH
- A colon-separated list of directories to search for YS library files loaded with theuse
function. This is the only YS environment variable that doesn't start withYS_
, but there is an equivalentYS_PATH
that can be used instead. -
YS_PATH
- An alternative toYSPATH
that is used ifYSPATH
is not set. -
YS_PRINT=1
- Same as-p
(--print
) command line option. -
YS_STREAM=1
- Same as-s
(--stream
) command line option. -
YS_OUTPUT=<file-name>
- Same as-o
(--output=<file-name>
) command line option. -
YS_FORMAT=<yaml|json|edn|csv|tsv>
- Same as-t
() -
YS_UNORDERED=1
- Same as-u
(--unordered
) command line option. -
YS_XTRACE=1
- Same as-x
(--xtrace
) command line option. -
YS_STACK_TRACE=1
- Same as-S
(--stack-trace
) command line option. -
YS_SHOW_OPTS=1
- Print all the option values. -
YS_SHOW_LEX=1
- Print the lexed tokens of each YS expression. -
YS_SHOW_INPUT=1
- Print the input YS expressions.