-
Notifications
You must be signed in to change notification settings - Fork 4
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
Read built-in #327
Read built-in #327
Conversation
WalkthroughThe Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on X ? TipsChat with CodeRabbit Bot (
|
323591e
to
eb6940f
Compare
When there are more fields than variables, the last variable receives all remaining fields, including the field separators, but not trailing whitespace separators. This is the behavior required by POSIX.
7a168e0
to
9708296
Compare
9708296
to
6bde00d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 2
Configuration used: CodeRabbit UI
Files selected for processing (11)
- yash-builtin/src/lib.rs (3 hunks)
- yash-builtin/src/read.rs (1 hunks)
- yash-builtin/src/read/assigning.rs (1 hunks)
- yash-builtin/src/read/input.rs (1 hunks)
- yash-builtin/src/read/prompt.rs (1 hunks)
- yash-builtin/src/read/syntax.rs (1 hunks)
- yash-builtin/src/typeset.rs (4 hunks)
- yash-semantics/src/expansion/split/ifs.rs (2 hunks)
- yash-semantics/src/expansion/split/ranges.rs (3 hunks)
- yash/tests/scripted_test.rs (1 hunks)
- yash/tests/scripted_test/read-p.sh (1 hunks)
Files skipped from review due to trivial changes (3)
- yash-builtin/src/lib.rs
- yash-builtin/src/read/prompt.rs
- yash/tests/scripted_test/read-p.sh
Files skipped from review as they are similar to previous changes (5)
- yash-builtin/src/read.rs
- yash-builtin/src/read/syntax.rs
- yash-builtin/src/typeset.rs
- yash-semantics/src/expansion/split/ifs.rs
- yash/tests/scripted_test.rs
Additional comments: 2
yash-semantics/src/expansion/split/ranges.rs (2)
73-79: The integration of the
classify
logic into thenext
method of theRanges
iterator appears to be correctly implemented by usingself.ifs.classify_attr
to classify characters.138-144: The tests in the
ranges.rs
module seem to be well-structured and designed to cover various scenarios for the newRanges
iterator logic.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files selected for processing (1)
- yash/tests/scripted_test/redir-p.sh (1 hunks)
Files skipped from review due to trivial changes (1)
- yash/tests/scripted_test/redir-p.sh
Summary by CodeRabbit
New Features
read
built-in command for reading input and assigning it to variables.read
command, including usage, options, and examples.read
command.Bug Fixes
Documentation
read
built-in.Tests
read
built-in to ensure correct behavior.Chores