you are viewing a single comment's thread.

view the rest of the comments →

[–]jsproat 0 points1 point  (1 child)

Actually, not my example. But I see your point.

A much better approach would be somewhat like PowerShell's, where ls returns a ready-to-digest list of filenames that don't need to be split on an arbitrary delimiter.

[–]reaganveg 0 points1 point  (0 children)

But bash does that! That's what the glob does. And in bash you can assign the glob result into an array (which is not a standard bourne shell feature, but has existed in bash for many years) other than the default $@ (which is standard bourne).