Word splitting
suggest changeVersions
[{“Name”:“1.01”,“GroupName”:null},{“Name”:“2.0”,“GroupName”:null}]
Syntax
- Set IFS to newline:
IFS=$'\n' - Set IFS to the empty string:
IFS= - Set IFS to the
/character:IFS=/
Parameters
| Parameter | Details |
|---|---|
| IFS | Internal field separator |
| -x | Print commands and their arguments as they are executed (shell option) |
Remarks
- Word splitting is not performed during assignments, for example
newvar=$var - Word splitting is not performed in the
[[ ... ]]construct - Use double quotes on variables to prevent word splitting
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents