make_array_member()
{
- local TAB=' '
+ local TAB=' ' CR='
+'
local tmp
- result="
- {
- .name = \"$name_txt\",
- .handler = com_$name_txt,
- "
+ result="{.name = \"$name_txt\", .handler = com_$name_txt, "
if test -n "$perms_txt"; then
result="$result .perms = $perms_txt,"
fi
- result="$result
- .description = \"$desc_txt\",
- .usage = \"$usage_txt\",
- .help = "
+ result="$result.description = \"$desc_txt\", .usage = \"$usage_txt\", \\$CR .help = "
tmp="$(printf "%s\n" "$help_txt" | sed -e 's/^/\"/g' -e 's/$/\\n\"/g' \
- -e "s/$TAB/\\\t/g")"
- result="$result $tmp },"
+ -e "s/$TAB/\\\t/g" -e's/$/\\/g')"
+ result="$result$tmp$CR}, \\$CR"
}
make_completion()