0
0

Add bash-array-with-spaces.sh

This commit is contained in:
DrMaxNix 2024-05-31 21:17:12 +02:00
commit 6f3ad133c8

11
bash-array-with-spaces.sh Normal file
View 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}"