The GNU Bourne-Again SHell - Patches: patch #10447, fix mapfile n exec superfluous...
You are not allowed to post comments on this tracker with your current authentication level.
patch #10447: fix mapfile n exec superfluous input
Submitter: | wangmeng <wangmeng> | ||
Submitted: | Fri 19 Apr 2024 03:37:09 AM UTC | ||
Category: | None | Priority: | 5 - Normal |
Status: | Wont Do | Privacy: | Public |
Assigned to: | None | Open/Closed: | Open |
Fri 19 Apr 2024 12:55:10 PM UTC, comment #1: |
Chet Ramey <chet> |
Fri 19 Apr 2024 03:37:09 AM UTC, original submission:
The following command output is displayed when the ‘mapfile -n array’ command is executed:
|
wangmeng <wangmeng> |
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 2 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2024-04-19 | chet | Status | None | Wont Do | |
2024-04-19 | wangmeng | Attached File | - | Added 0001-fix-mapfile-n-exec-superfluous-input.patch, #55946 |
Powered by Savane 3.13-bb6a.
Corresponding source code
This is not a bug; mapfile behaves as documented. It reads input until it encounters a delimiter, then returns.
If you're worried about this situation, follow the call to mapfile with a call to read to consume any remaining input on the line, or use newline as the delimiter and split the line yourself.