helpThe GNU Bourne-Again SHell - Support: sr #109291, Documentation request: document...


sr #109291: Documentation request: document that read -d '' reads until \0

Submitted by:  Josh Triplett <joshtriplett>
Submitted on:  Tue 04 Apr 2017 01:58:56 AM UTC  
Category:  None Priority:  5 - Normal
Severity:  1 - Wish Status:  Done
Privacy:  Public Assigned to:  None
Open/Closed:  Open Operating System:  None

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Wed 26 Apr 2017 12:24:46 PM UTC, comment #2: and show the changes.

It was documented under `readarray' though, and I don't think that's correct.

Eduardo Bustamante <dualbus>
Tue 04 Apr 2017 10:10:10 PM UTC, comment #1:

Saw that this got closed; is this already documented somewhere, and I overlooked it? I didn't see it in the documentation of the read builtin in the manpage, or in the HTML manual.

Josh Triplett <joshtriplett>
Tue 04 Apr 2017 01:58:56 AM UTC, original submission:

The read builtin supports the -d option to read until a delimiter, documented as "The first character of delim is used to terminate the input line, rather than newline.". If used with an empty string ('') as the argument, read will read until a \0. Since this seems like a common use case (for use with find -print0 and similar), please consider documenting this behavior (and recommending the use of -r when using it).

Josh Triplett <joshtriplett>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by dualbus (Posted a comment)
  • -email is unavailable- added by chet (Updated the item)
  • -email is unavailable- added by joshtriplett (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-04-04 chet StatusNone => Done

    Back to the top

    Powered by Savane 3.3