Skip to content

yash-cli-0.1.0-beta.2

Latest
Compare
Choose a tag to compare
@magicant magicant released this 12 Jul 16:13
· 159 commits to master since this release
yash-cli-0.1.0-beta.2

[0.1.0-beta.2] - 2024-07-13

Added

  • Internal dependencies:
    • yash-prompt 0.1.0

Changed

  • External dependency versions:
    • Rust 1.75.0 → 1.77.0
  • Internal dependency versions:
    • yash-builtin 0.2.0 → 0.3.0
    • yash-semantics 0.2.0 → 0.3.0
    • yash-syntax 0.9.0 → 0.10.0
  • The shell now shows the prompt before reading the input in the interactive mode.
    To achieve this, the startup::prepare_input function now applies the
    yash_prompt::Prompter decorator to the returned source input.
  • The first argument to startup::prepare_input is now env: &'a RefCell<&mut Env>
    instead of system: &mut SharedSystem. This change is to allow the function to
    construct yash_env::input::Echo for the returned source input.

Removed

  • startup::SourceInput::verbose
    • The caller of startup::prepare_input is no longer responsible for setting
      the verbose flag of the read-eval loop. The behavior of the verbose option
      is now implemented in yash_env::input::Echo, which is included in
      the startup::SourceInput::input field.

Fixed

  • The break and continue built-ins no longer allow exiting a trap.
  • The read built-in now shows a prompt when reading a continued line.
  • The source built-in now echoes the input when the verbose shell option is set.
  • The set built-in no longer sets the SIGTTIN, SIGTTOU, and SIGTSTP signals
    to be ignored when invoked with the -m option in a subshell of an
    interactive shell.