This is a really simple bash question. I just wanted to know if there's any difference between IFS=
and IFS=''
.
CodePudding user response:
No, there is not. They both set IFS
to an empty value.
CodePudding user response:
No, since the shell before executing, performs quote removal. This turns IFS=''
(or IFS=""
) into IFS=
anyway.
CodePudding user response:
It depends. Is the second string actually the string 4946 533d 2727
, or is it 4946 533d 2701 27
? Both strings will render as IFS=''
, but the second one does not assign the null string to IFS. If nothing nefarious is going on, then the string that you see as IFS=''
is probably just the string 4946 533d 2727
, but you need to be careful.