Add bash-array-with-spaces.sh
This commit is contained in:
commit
6f3ad133c8
11
bash-array-with-spaces.sh
Normal file
11
bash-array-with-spaces.sh
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
local oldifs="${IFS}"
|
||||||
|
IFS=""
|
||||||
|
for s in ${out_section_list[*]:-}; do
|
||||||
|
log_debug "out_section_list:: $s"
|
||||||
|
done
|
||||||
|
out_section_list=(${out_section_list[@]:-""} "$section_name")
|
||||||
|
out_section_list=(${out_section_list[@]:-""} "bad evil name")
|
||||||
|
IFS="${oldifs}"
|
Loading…
Reference in New Issue
Block a user