Shell variables
magicant opened this issue · 0 comments
magicant commented
Default-assigned variables:
- Default
$IFS
- Default
$OPTIND
- Default
$PPID
- Default
$PS1
- Default
$PS2
- Default
$PS4
- Default
$PWD
#218 - Default
$YASH_LOADPATH
- Default
$YASH_VERSION
Variables with a quirk:
- Dynamically computing
$LINENO
#224 - Expanding
$RANDOM
- Clearing
$PATH
on assignment
Variables tracked in other tasks:
$COMMAND_NOT_FOUND_HANDLER
→ Command semantics$DIRSTACK
→dirs
,pushd
andpopd
built-ins$ECHO_STYLE
→echo
built-in$ENV
→ Shell startup$FCEDIT
→fc
built-in$HISTFILE
and$HISTSIZE
→ History$HOME
→ Tilde expansion$IFS
→ Field splitting$MAIL
,$MAILCHECK
and$MAILPATH
→ Mail check$OLDPWD
→cd
built-in$OPTARG
→getopts
built-in$PATH
→ Command search$YASH_AFTER_CD
→cd
andpushd
built-ins- Locale parameters
$LANG
and$LC_...
→ Locale
Variables not planned for implementation:
$NLSPATH
→ yash-rs will use a different locale mechamism