任务单 #35265

'read' does not trim initial whitespace

开放日期: 2015-06-19 18:21 最后更新: 2015-07-19 01:43

报告人:
(匿名)
属主:
类型:
状态:
关闭
组件:
里程碑:
(无)
优先:
6
严重性:
6
处理结果:
Fixed
文件:
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

任务单历史 (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
  • 处理结果 Update from to Fixed
  • 状态 Update from 开启 to 关闭
  • 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

编辑

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