Ticket #35265

'read' does not trim initial whitespace

오픈 날짜: 2015-06-19 18:21 마지막 업데이트: 2015-07-19 01:43

Reporter:
(Anonymous)
소유자:
Type:
Status:
Closed
Component:
MileStone:
(None)
Priority:
6
Severity:
6
Resolution:
Fixed
File:
None
Vote
Score: 0
No votes
0.0% (0/0)
0.0% (0/0)

Details

When 'read' is used with a single argument, initial IFS whitespace is not removed from the input as it should be.

read input <<EOF
$(printf '        hi        \n')
EOF
printf 'x%sx\n' "$input"

Actual output:

x        hix

Expected output (given default IFS):

xhix

Ticket History (3/3 Histories)

2015-06-19 18:21 Updated by: None
  • New Ticket "'read' does not trim initial whitespace" created
2015-07-02 05:53 Updated by: mcdutchie
댓글 올리기

FYI, I wrote this bug report; I forgot to log in, sorry about that.

2015-07-19 01:43 Updated by: magicant
  • Resolution Update from None to Fixed
  • Status Update from Open to Closed
  • Ticket Close date is changed to 2015-07-19 01:43
댓글 올리기

Fixed in r3325

Thank you for the bug report!

Attachment File List

No attachments

Edit

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login