Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 410831

Summary: Read builtin implementation
Product: Gentoo Hosted Projects Reporter: Aparicio <aparicio99>
Component: libbashAssignee: Petteri Räty (RETIRED) <betelgeuse>
Status: RESOLVED OBSOLETE    
Severity: enhancement CC: aparicio99
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: read builtin patch

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)