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

 
 

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

Submitter:  Josh Triplett <joshtriplett>
Submitted:  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
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 26 Apr 2017 12:24:46 PM UTC, comment #2: 
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:
   
   
Comment:
   

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)
  •  

    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.

    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.13-cf05.
    Corresponding source code