loop : add info about IFS.
This commit is contained in:
parent
2b18df4c5a
commit
758651edac
|
@ -1,7 +1,12 @@
|
||||||
# loops.
|
# loops.
|
||||||
|
|
||||||
## for loop.
|
## for loop.
|
||||||
|
|
||||||
`break` and `continue` are supported.
|
`break` and `continue` are supported.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
local IFS=$'\n' # If we want to support files with spaces.
|
||||||
|
|
||||||
local array=( foo bar )
|
local array=( foo bar )
|
||||||
local files="*"
|
local files="*"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue