X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=command_util.sh;h=822cad2af5a74037867e95d5613c27e8eb56f2ee;hb=5e54609eda6f4417e8b7042db59ecf47fd720751;hp=ad75c9b575680bc7c6310610ffece6dc358cbfd5;hpb=14644a021246064dcadf9315c8ef93eeea461cce;p=paraslash.git diff --git a/command_util.sh b/command_util.sh index ad75c9b5..822cad2a 100755 --- a/command_util.sh +++ b/command_util.sh @@ -241,7 +241,7 @@ dump_array_member() 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 '},' } @@ -263,7 +263,7 @@ template_loop() 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