Premise
I realise this question already exists, but the solutions are not actually changing the delimiter. I would like to know if there is anyway to change the delimiter or if anybody knows where it resides.
Example
Say i need to pass this string to a program, delimited by commas as that is what the program accepts
echo \"abc" "{def,ghi}\"
prints
"abc def" "abc ghi"
where i would want
"abc def","abc ghi"
Obviously this is just a simple example though.
What i have tried
Nothing as i have no idea where to look for this delimiter, although i have searched pretty extensively
Also as a sub question:
Using choroba's answer from the other question creates errors when trying to use it to pass it to my script. Admittedly i haven't tried for long though
I tried
./script ( set abc" "{def,ghi} ; IFS=: ; echo "$*" )
./script < <( set abc" "{def,ghi} ; IFS=: ; echo "$*" )
./scipt $(( set abc" "{def,ghi} ; IFS=: ; echo "$*" ))
printfyou can sayprintf "%s," \"abc" "{def,ghi}\"and you'll get"abc def","abc ghi",. But this is just an idea.(set \"abc\ {def,ghi}\"; IFS=,; echo "$*")prints:"abc def","abc ghi".