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

New trap built-in semantics #449

Open
10 tasks
Tracked by #422
magicant opened this issue Jan 29, 2025 · 0 comments · May be fixed by #450
Open
10 tasks
Tracked by #422

New trap built-in semantics #449

magicant opened this issue Jan 29, 2025 · 0 comments · May be fixed by #450
Assignees
Labels
enhancement New feature or request tracker List of subtasks

Comments

@magicant
Copy link
Owner

magicant commented Jan 29, 2025

Requirements:

  • trap (without options or operands) should show signals ignored by inheritance in exec
  • trap -p (without operands) should show all signals

Todo:

  • Update yash_builtin::trap documentation
  • Add yash_env::trap::SignalSystem::get_disposition
  • Make yash_env::trap::Setting public (re-exported from yash_env::trap::state::Setting)
  • Add yash_env::trap::TrapSet::peek_state that returns Result<&Setting, Errno>
    • Obtains the underlying signal disposition if necessary
    • Has a parameter that allows peeking the parent setting if the current is default
  • Update yash_env::trap::TrapSet::get_state documentation to mention the peek_state method
  • Make yash_builtin::trap::display_traps show all non-default settings, including InitiallyIgnored
  • Add a parameter to yash_builtin::trap::display_traps to select which conditions to show
  • Add support for the -p option without operands
  • Add support for the -p option with operands
  • Elaborate yash_env::trap::TrapSet::iter documentation: it does not yield initially ignored conditions
@magicant magicant added enhancement New feature or request tracker List of subtasks labels Jan 29, 2025
@magicant magicant added this to yash-rs Jan 29, 2025
@github-project-automation github-project-automation bot moved this to To do in yash-rs Jan 29, 2025
@magicant magicant self-assigned this Jan 29, 2025
@magicant magicant linked a pull request Jan 29, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request tracker List of subtasks
Projects
Status: To do
Development

Successfully merging a pull request may close this issue.

1 participant