Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

7
  • 1
    Is there any reason Bash sees a \t and replaces it with a space? Commented Jun 10, 2016 at 16:18
  • @user1717828 yes, it's called the spit+glob operator. It's what happens when you use a variable unquoted in bash and similar shells. Commented Jun 10, 2016 at 17:43
  • 1
    @terdon, in <<< $line, bash does split but not glob. There's no reason it would do split here as <<< expects a single word. It splits and then joins in that case, which makes little sense and is against all other shells implementations that have supported <<< before or after bash. IMO it's a bug. Commented Jun 10, 2016 at 17:51
  • @StéphaneChazelas fair enough, the issue is with the split part anyway. Commented Jun 10, 2016 at 18:12
  • 2
    @StéphaneChazelas No split (nor glob) happens on bash 4.4 Commented Jun 10, 2016 at 20:18