Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shell variables #217

Open
8 of 12 tasks
Tracked by #5
magicant opened this issue Nov 23, 2022 · 0 comments
Open
8 of 12 tasks
Tracked by #5

Shell variables #217

magicant opened this issue Nov 23, 2022 · 0 comments
Labels
tracker List of subtasks

Comments

@magicant
Copy link
Owner

magicant commented Nov 23, 2022

Default-assigned variables:

  • Default $IFS
  • Default $OPTIND
  • Default $PPID
  • Default $PS1
  • Default $PS2
  • Default $PS4
  • Default $PWD Initialize $PWD variable #218
  • Default $YASH_LOADPATH
  • Default $YASH_VERSION

Variables with a quirk:

  • Dynamically computing $LINENO $LINENO #224
  • Expanding $RANDOM
  • Clearing $PATH on assignment

Variables tracked in other tasks:

  • $COMMAND_NOT_FOUND_HANDLER → Command semantics
  • $DIRSTACKdirs, pushd and popd built-ins
  • $ECHO_STYLEecho built-in
  • $ENV → Shell startup
  • $FCEDITfc built-in
  • $HISTFILE and $HISTSIZE → History
  • $HOME → Tilde expansion
  • $IFS → Field splitting
  • $MAIL, $MAILCHECK and $MAILPATH → Mail check
  • $OLDPWDcd built-in
  • $OPTARGgetopts built-in
  • $PATH → Command search
  • $YASH_AFTER_CDcd and pushd built-ins
  • Locale parameters $LANG and $LC_... → Locale

Variables not planned for implementation:

  • $NLSPATH → yash-rs will use a different locale mechamism
@magicant magicant added the tracker List of subtasks label Nov 23, 2022
@magicant magicant changed the title Shell variables (PPID, RANDOM, etc.) Shell variables Nov 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tracker List of subtasks
Projects
None yet
Development

No branches or pull requests

1 participant