Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 410831 - Read builtin implementation
Summary: Read builtin implementation
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: libbash (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Petteri Räty (RETIRED)
Depends on:
Reported: 2012-04-05 01:27 UTC by Aparicio
Modified: 2018-01-25 17:59 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---

read builtin patch (0001-Builtin-implement-read-builtin.patch,5.54 KB, patch)
2012-04-05 01:29 UTC, Aparicio
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Aparicio 2012-04-05 01:27:52 UTC
I'm submiting this patch for my Google Summer of Code application.

It's a basic implementation of the read builtin, with multiple variables, line-continuation, backslash escapes, and without options.

For the input parsing, it uses strtok instead of some C++/boost stuff as it doesn't have to split the entire line, and it easly leaves the rest of the line intact for the case where there are less variables than words.

Git formatted patch attached.

Reproducible: Always
Comment 1 Aparicio 2012-04-05 01:29:05 UTC
Created attachment 307849 [details, diff]
read builtin patch
Comment 2 Pacho Ramos gentoo-dev 2018-01-25 17:59:59 UTC
Developer retired (and his mail address is not active anymore)