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: NonePriority: 5 - Normal
Severity: 1 - WishStatus: Done
Privacy: PublicAssigned to: None
Open/Closed: OpenOperating 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 File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


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

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

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 04 Apr 2017 07:32:44 PM UTCchetStatusNone=>Done

    Back to the top

    Powered by Savane 3.1-cleanup1