Skip to content

yash-env-0.2.1

Compare
Choose a tag to compare
@magicant magicant released this 12 Jul 15:02
· 208 commits to master since this release
yash-env-0.2.1

[0.2.1] - 2024-07-12

Added

  • Env::is_interactive
  • impl yash_system::alias::Glossary for Env
  • input::Echo
    • This is a decorator of Input that implements the behavior of the verbose shell option.
  • input::FdReader is now marked #[must_use].
  • variable::VariableSet::get_scalar
    • This is a convenience method that returns a scalar variable as a Cow<str>.
  • Variable name constants in the variable module:
    CDPATH, ENV, HOME, IFS, LINENO, OLDPWD, OPTARG, OPTIND,
    PATH, PPID, PS1, PS2, PS4, PWD
  • Variable initial value constants in the variable module:
    IFS_INITIAL_VALUE, OPTIND_INITIAL_VALUE, PS1_INITIAL_VALUE_NON_ROOT,
    PS1_INITIAL_VALUE_ROOT, PS2_INITIAL_VALUE, PS4_INITIAL_VALUE
  • impl System for &SharedSystem and impl trap::SignalSystem for &SharedSystem
    • This allows SharedSystem to be used as a system behind a non-mutable reference.

Changed

  • External dependency versions:
    • Rust 1.70.0 → 1.77.0
    • yash-syntax 0.9.0 → 0.10.0
  • Internal dependency versions:
    • annotate-snippets 0.10.0 → 0.11.4
  • All inherent methods of SharedSystem now take &self instead of &mut self:
    • SharedSystem::read_async
    • SharedSystem::write_all
    • SharedSystem::print_error

Deprecated

  • input::FdReader::set_echo in favor of input::Echo

Fixed

  • stack::Stack::loop_count no longer counts loops below a Frame::Trap(_) frame.
  • Possible undefined behavior in RealSystem::times