Skip to main content
2 events
when toggle format what by license comment
Apr 5, 2018 at 4:45 comment added Eliah Kagan This is mostly good, but you seem to say word splitting happens on cp ~/some/dir/{my-file-to-rename.bin, new-name-of-file.bin} and IFS affects the result. Neither is so. Here, space is a metacharacter in tokenization (step 2). See 3.5.7 on when splitting happens. Try IFS=x then printf '[%s]\n' {a,b} printf '[%s]\n' {a, b} printf '[%s]\n' {a,xb} printf '[%s]\n' {a, xb}.
Apr 5, 2018 at 2:59 history answered cde CC BY-SA 3.0