echo ".description = \"$desc_txt\","
echo ".usage = \"$usage_txt\","
echo ".help = "
- echo "$help_txt" | sed -e 's/^/\"/g' -e 's/$/\\n\"/g'
+ printf "%s\n" "$help_txt" | sed -e 's/^/\"/g' -e 's/$/\\n\"/g'
echo '},'
}
perms_txt=$(echo $t_perms | $sed_cmd)
desc_txt=$(echo $t_desc | $sed_cmd)
usage_txt=$(echo $t_usage | $sed_cmd)
- help_txt=$(echo $t_help | $sed_cmd)
+ help_txt=$(printf "%s" "$t_help" | $sed_cmd)
prototype=$(echo "$template_prototype" | $sed_cmd)
$1
done