magicant
released this
12 Jul 16:13
·
159 commits
to master
since this release
[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, thestartup::prepare_input
function now applies the
yash_prompt::Prompter
decorator to the returned source input. - The first argument to
startup::prepare_input
is nowenv: &'a RefCell<&mut Env>
instead ofsystem: &mut SharedSystem
. This change is to allow the function to
constructyash_env::input::Echo
for the returned source input.
Removed
startup::SourceInput::verbose
- The caller of
startup::prepare_input
is no longer responsible for setting
theverbose
flag of the read-eval loop. The behavior of the verbose option
is now implemented inyash_env::input::Echo
, which is included in
thestartup::SourceInput::input
field.
- The caller of
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
, andSIGTSTP
signals
to be ignored when invoked with the-m
option in a subshell of an
interactive shell.